tabs are not working in IE please verify my code below
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SkinID="RadTabStrip" MultiPageID="RadMultiPage1"
SelectedIndex="0" Width="447px" CausesValidation="false">
<Tabs>
<telerik:RadTab runat="server" TabIndex="0" Text="Active Profile" Selected="true"
Style="font-size: 13px;">
</telerik:RadTab>
<telerik:RadTab runat="server" TabIndex="1" Text="InActive Profile" Style="font-size: 13px;">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" BorderWidth="0px">
<telerik:RadPageView ID="rdpvSalon" runat="server">
//////// Sample Table and Controls
</telerik:RadPageView>
<telerik:RadPageView ID="RadPageView1" runat="server">
//////// SampleTable and Controls
</telerik:RadPageView>
</telerik:RadMultiPage>
<%
@ Page Language="C#" AutoEventWireup="true" CodeBehind="OverrideEmailAddresses.aspx.cs" Inherits="CTLS.iLien.Web.OverrideEmailAddresses" enableEventValidation="false" %>
<%
@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head id="Head1" runat="server">
<title></title>
<style type="text/css">
span.label
{
color:Black;
font-family:Arial;
font-weight:bold;
font-size:8pt;
padding: 4px 4px;
display: block;
margin-bottom: 7px;
}
#ConfigurationPanel1 ul
{
list-style: none;
margin: 0;
padding: 0;
float: left;
}
#ConfigurationPanel1 li
{
float: left;
padding: 0 10px;
border-left: solid 1px #b1d8eb;
line-height: 24px;
}
#ConfigurationPanel1 li input, #ConfigurationPanel1 li label, #ConfigurationPanel1 li span
{
vertical-align: middle;
}
.cssButton
{
background: url("../Common/Images/Add.gif") !important;
margin-left: 7px !important;
height: 22px !important;
width: 65px !important;
}
.cssScroll
{
background: url("../Images/delete.gif");
}
td.filing_grfbar
{
font-family: Arial;
font-size: 9pt;
font-weight: bold;
color: #FFFFFF;
height: 28px;
text-decoration: none;
background-color: #0076CD;
filter: progid:DXImageTransform.Microsoft.Gradient(endColorstr='#0076CD', startColorstr='#51B4FD', gradientType='0');
}
FONT.style7
{
font-family: Arial,Helvetica,Geneva,Swiss,SunSans-Regular;
color: White;
font-size: 10pt;
}
Panel.Margin
{
font-family:Arial;
margin-top:20px;
}
.ContentsLeftEndCap
{
background-image:url('../images/ContentEdgeLeft.gif');
background-repeat:repeat-y;
width: 232px;
}
.ContentsRightEndCap
{
background-image:url('../images/ContentEdgeRight.gif');
background-repeat:repeat-y;
width: 232px;
}
td.grfbar
{
font-family: Arial;
font-size: 9pt;
font-weight: bold;
color: #FFFFFF;
text-decoration: none;
background-color: #0076CD;
filter: progid:DXImageTransform.Microsoft.Gradient(endColorstr='#0076CD', startColorstr='#51B4FD', gradientType='0');
}
.style1
{
height: 150px;
}
.style2
{
width: 232px;
}
.style3
{
height: 15px;
}
.style4
{
height: 43px;
}
.style5
{
FONT-SIZE: 9pt;
color:Black;
/*COLOR: #cc6600;*/
FONT-FAMILY: Arial;
height: 30px;
}
.style6
{
height: 15px;
width: 232px;
}
.roundedBlockTopLeft
{
background-repeat: no-repeat;
width: 21px;
height: 36px;
background-image:url('../../Common/images/Order_results_topL1.gif');
}
.roundedBlockTopRight
{
background-repeat: no-repeat;
width: 21px;
height: 36px;
background-image:url('../../Common/images/Order_results_topR1.gif');
}
.roundedBlockTopCenter
{
height: 36px;
font-family: Arial, Helvetica, sans-serif;
font-size:12px;
font-weight: bold;
color:#636469;
background:url(../../Common/images/Order_results_toptile1.gif) repeat-x;
}
</style>
</
head>
<
body class="BODY">
<form runat="server" id="mainForm" method="post">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1">
</telerik:RadScriptManager>
<telerik:RadScriptBlock runat="Server" ID="RadScriptBlock1">
<script type="text/javascript">
/* <![CDATA[
*/
var gridId = "<%= RadGrid1.ClientID %>";
var grid2Id="<%= RadGrid3.ClientID %>";
function isMouseOverGrid(target)
{
parentNode = target;
while (parentNode != null)
{
if (parentNode.id == gridId)
{
return parentNode;
}
else if (parentNode.id == grid2Id)
{
return parentNode;
}
parentNode = parentNode.parentNode;
}
return null;
}
function onNodeDragging(sender, args)
{
var target = args.get_htmlElement();
if(!target) return;
if (target.tagName == "INPUT")
{
target.style.cursor =
"hand";
}
var grid = isMouseOverGrid(target)
if (grid)
{
grid.style.cursor =
"hand";
}
}
function dropOnHtmlElement(args)
{
if(droppedOnGrid(args))
return;
}
function droppedOnGrid(args)
{
var target = args.get_htmlElement();
while(target)
{
if(target.id == gridId || target.id ==grid2Id)
{
args.set_htmlElement(target);
return;
}
target = target.parentNode;
}
args.set_cancel(
true);
}
function clientSideEdit(sender, args)
{
var destinationNode = args.get_destNode();
if(destinationNode)
{
var firstTreeView = $find('RadTreeView1');
firstTreeView.trackChanges();
var sourceNodes = args.get_sourceNodes();
for (var i = 0; i < sourceNodes.length; i++)
{
var sourceNode = sourceNodes[i];
sourceNode.get_parent().get_nodes().remove(sourceNode);
if(args.get_dropPosition() == "over") destinationNode.get_nodes().add(sourceNode);
if(args.get_dropPosition() == "above") insertBefore(destinationNode, sourceNode);
if(args.get_dropPosition() == "below") insertAfter(destinationNode, sourceNode);
}
destinationNode.set_expanded(
true);
firstTreeView.commitChanges();
}
}
function insertBefore(destinationNode, sourceNode)
{
var destinationParent = destinationNode.get_parent();
var index = destinationParent.get_nodes().indexOf(destinationNode);
destinationParent.get_nodes().insert(index, sourceNode);
}
function insertAfter(destinationNode, sourceNode)
{
var destinationParent = destinationNode.get_parent();
var index = destinationParent.get_nodes().indexOf(destinationNode);
destinationParent.get_nodes().insert(index+1, sourceNode);
}
function onNodeDropping(sender, args)
{
var dest = args.get_destNode();
if (dest)
{
var clientSide = document.getElementById('ChbClientSide').checked;
if(clientSide)
{
clientSideEdit(sender, args);
args.set_cancel(
true);
return;
}
dropOnTree(args);
}
else
{
dropOnHtmlElement(args);
}
}
/* ]]> */
function checkUCCEmail(sender,args)
{
var obj=document.getElementById('RadMaskedTextBox1');
var re = new RegExp(/(^[a-z]([a-z_0-9\.]*)@[a-z0-9]([a-z_\-0-9\.]*)([.][a-z]{2,3})$)/i);
if(obj.value != "")
{
if (!re.test(obj.value)) {
alert(
"Please enter valid email address!");
return false;
};
};
var radTextBox = sender;
sender.raisePostBackEvent();
}
function checkBEEmail(sender,args)
{
var obj=document.getElementById('RadTextBox2');
var re = new RegExp(/(^[a-z]([a-z_0-9\.]*)@[a-z0-9]([a-z_\-0-9\.]*)([.][a-z]{2,3})$)/i);
if(obj.value != "")
{
if (!re.test(obj.value)) {
alert(
"Please enter valid email address!");
return false;
};
};
var radTextBox = sender;
sender.raisePostBackEvent();
}
</script>
</telerik:RadScriptBlock>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
</telerik:RadWindowManager>
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="btnSave">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
</UpdatedControls>
</telerik:AjaxSetting>
<%
--<telerik:AjaxSetting AjaxControlID="RadTreeView1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadTreeView1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid3" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting> --
%>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" />
<table width="750" >
<tr>
<td colspan="3" class="style5">
To override e-mail notifications,drag and drop organizational users to each receipient
list. You can also add external email addresses using the box provided above each
list.
</td>
</tr>
<tr>
<td class="style6" colspan="3">
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td style="width: 14px" class="grfbar"><img alt="" id="img3" runat="server" style="width: 14px;height: 20;" /> </td>
<td align="left" class="grfbar"><b><font class="style7">Organizational Users</font></b></td>
<td style="width: 14px" class="grfbar"><img alt="" id="img4" runat="server" style="width: 14px;height: 20;" /> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" valign="top" class="style6" style="border:1px solid #AAAAAA;" width="30%" >
<telerik:RadTreeView ID="RadTreeView1" runat="server" EnableDragAndDrop="True" OnNodeDrop="RadTreeView1_HandleDrop"
OnClientNodeDropping="onNodeDropping" OnClientNodeDragging="onNodeDragging" MultipleSelect="True" Height="500px"
EnableDragAndDropBetweenNodes="True" ShowLineImages="false" > <%--Skin="Windows7"--%>
<Nodes>
</Nodes>
</telerik:RadTreeView>
</td>
<td valign="top" width="70%">
<table border="0" width="100%">
<tr>
<td >
</td>
<td colspan="2" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-bottom: 0px">
<tr align="center">
<td class="filing_grfbar" style="width: 14px; height: 20px;"><img alt="" id="imgbLeft" runat="server" style="width: 14px;height: 20;" /></td>
<td class="filing_grfbar" valign="middle" style="height: 20px" align="left"><b><font class="style7">UCC Debtor Alert Receipients</font></b></td>
<td class="filing_grfbar" style="width: 14px; height: 20px;"><img alt="" id="imgbRight" runat="server" style="width: 14px" /></td>
</tr>
</table>
</td>
</tr>
<tr >
<td>
</td>
<td>
<table>
<tr>
<td>
<table>
<tr>
<td colspan="2" valign="top" height="100%">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="roundedBlockTopLeft"></td>
<td class="roundedBlockTopCenter" style="text-align:left; width:160px;">User</td>
<td class="roundedBlockTopCenter" style="width:180px;text-align:left">Email</td>
<td class="roundedBlockTopCenter" style="text-align:right; width:105px;">Remove</td>
<td class="roundedBlockTopRight"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" width="100%" align="left" style="height:125px;">
<telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="False" GridLines="None"
Skin="Windows7" OnDeleteCommand="onDeleteUccDebtor" ShowHeader="false"
Height="100%" Width="99%" >
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="true" />
</ClientSettings>
<MasterTableView TableLayout="Fixed" GroupLoadMode="Client">
<Columns>
<telerik:GridBoundColumn DataField="UserName" HeaderText="User" UniqueName="User" ItemStyle-Wrap="true" ItemStyle-Width="35%" ItemStyle-HorizontalAlign="Left">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Email" HeaderText="Email" UniqueName="Email" ItemStyle-Wrap="true" ItemStyle-Width="55%"
ItemStyle-HorizontalAlign="Left">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="UserNumber" HeaderText="" UniqueName="UserNo" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridButtonColumn UniqueName="Remove" ImageUrl="../Common/Images/delete.gif" ButtonType="ImageButton"
ItemStyle-Width="10%" CommandName="Delete" HeaderText="Remove">
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</td>
</tr>
<tr>
<td align="right" style="width:32%;" >
<asp:Label class="label" Text="Additional Email Address" runat="server" ID="Label1"></asp:Label>
</td>
<td align="left">
<telerik:RadTextBox ID="RadMaskedTextBox1" runat="server" Skin="Windows7" MaxLength="250"
Wrap="true" Width="270px" ButtonsPosition="Right" ShowButton="true" OnTextChanged="btnAddUCC_Click"
ButtonCssClass="cssButton">
<ClientEvents OnButtonClick="checkUCCEmail" />
</telerik:RadTextBox>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td >
</td>
<td colspan="2" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-bottom: 0px">
<tr align="center">
<td class="filing_grfbar" style="width: 14px; height: 20px;"><img alt="" id="img1" runat="server" style="width: 14px;height: 20;" /></td>
<td class="filing_grfbar" valign="middle" style="height: 20px" align="left"><b><font class="style7">Business Entity Alert Receipients</font></b></td>
<td class="filing_grfbar" style="width: 14px; height: 20px;"><img alt="" id="img2" runat="server" style="width: 14px" /></td>
</tr>
</table>
</td>
</tr>
<tr >
<td>
</td>
<td colspan="2">
<table border="0" width="100%">
<tr>
<td>
<table border="0">
<tr>
<td colspan="2" valign="top" height="100%">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="roundedBlockTopLeft"></td>
<td class="roundedBlockTopCenter" style="text-align:left; width:160px;">User</td>
<td class="roundedBlockTopCenter" style="width:180px;text-align:left">Email</td>
<td class="roundedBlockTopCenter" style="text-align:right; width:105px;">Remove</td>
<td class="roundedBlockTopRight"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" width="100%" align="left" style="height:125px;">
<telerik:RadGrid runat="server" ID="RadGrid3" AutoGenerateColumns="False" GridLines="None"
Skin="Windows7" Height="100%" Width="99%" OnDeleteCommand="onDeleteBusinessEntity" ShowHeader="false">
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="true" />
</ClientSettings>
<MasterTableView TableLayout="Fixed" GroupLoadMode="Client">
<Columns>
<telerik:GridBoundColumn DataField="UserName" HeaderText="User" ItemStyle-Width="35%" UniqueName="User">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Email" HeaderText="Email" ItemStyle-Width="55%" UniqueName="Email">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="UserNumber" HeaderText="" UniqueName="UserNo" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridButtonColumn UniqueName="Remove" ImageUrl="../Common/Images/delete.gif" ButtonType="ImageButton"
CommandName="Delete" ItemStyle-Width="10%" HeaderStyle-Width="10%" HeaderText="Remove">
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</td>
</tr>
<tr>
<td align="right" style="width:32%">
<asp:Label class="label" Text="Additional Email Address" runat="server" ID="Label2" ></asp:Label></td>
<td>
<telerik:RadTextBox ID="RadTextBox2" runat="server" Skin="Windows7" MaxLength="250" Wrap="true" Width="270px"
ButtonsPosition="Right" ShowButton="true" ButtonCssClass="cssButton" OnTextChanged="btnAddBE_Click"><ClientEvents OnButtonClick="checkBEEmail" /></telerik:RadTextBox>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width:100%; margin-top:10;" colspan="3" align="right" >
<asp:ImageButton ID="btnSave" runat="server" OnClick="btnSaveClick"/>
<asp:ImageButton ID="btnCancel" runat="server" Text="Cancel" OnClientClick="window.close()" />
</td>
</tr>
</table>
</form>
</
body>
</
html>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"ContentPlaceHolder1"
Runat
=
"server"
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function refreshCV(arg) {
$find("<%= RadAjaxPanel1.ClientID %>").ajaxRequest("RebindCV");
}
function refreshImg(arg) {
$find("<%= RadAjaxPanel1.ClientID %>").ajaxRequest("RebindImg");
}
function RequestStart(sender, args) {
if (args.EventTarget == "lnkCvDownload") {
args.EnableAjax = false;
}
}
Telerik.Web.UI.RadWindowUtils.Localization =
{
"Close": "Close",
"Minimize": "Minimize",
"Maximize": "Maximize",
"Reload": "Reload",
"PinOn": "Pin on",
"PinOff": "Pin off",
"Restore": "Restore",
"OK": "Yes",
"Cancel": "No",
"Yes": "Yes",
"No": "No"
};
</
script
>
</
telerik:RadCodeBlock
>
<
asp:ScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
>
</
asp:ScriptManager
>
<
telerik:RadAjaxPanel
ID
=
"RadAjaxPanel1"
runat
=
"server"
Width
=
"100%"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
OnAjaxRequest
=
"RadAjaxPanel1_AjaxRequest"
>
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
Skin
=
"Vista"
runat
=
"server"
Behavior
=
"Close"
VisibleTitlebar
=
"True"
VisibleStatusbar
=
"False"
>
</
telerik:RadWindowManager
>
<
div
id
=
"left_container"
class
=
"equal_height01"
>
<
div
id
=
"quick-search"
> <
a
href
=
"#"
class
=
"tab01"
>Nanny agency directory</
a
> <
a
href
=
"#"
class
=
"tab-active"
>Nanny agency directory</
a
>
<
div
class
=
"main-navigation"
>
<
ul
>
<
li
><
a
>Search Jobs</
a
></
li
>
<
li
><
a
>Post a job</
a
></
li
>
<
li
><
a
>Post Your CV</
a
></
li
>
<
li
><
a
>Search CVs </
a
></
li
>
<
li
><
a
class
=
"lastchild"
>Jobs by email</
a
></
li
>
</
ul
>
</
div
>
</
div
>
<
div
id
=
"nannie-inner-left"
>
<
h2
>Nanny Profile and CV</
h2
>
<
div
class
=
"info-text"
>Edit your profile and upload your CV and then click on the Save button.</
div
>
<!-- Begin: textfild -->
<
ul
class
=
"profileinfo"
>
<
li
>
<
span
class
=
"sidelistheading"
>Settings:</
span
><
ul
class
=
"fff"
>
<
li
>
<
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"20"
align
=
"left"
valign
=
"middle"
>
<
asp:CheckBox
ID
=
"chAllowRecruiters"
runat
=
"server"
/>
</
td
>
<
td
width
=
"317"
align
=
"left"
valign
=
"middle"
class
=
"textupper"
>Allow recruiters to view my profile and CV</
td
>
<
td
width
=
"19"
align
=
"left"
valign
=
"middle"
>
<
asp:CheckBox
ID
=
"chRecruitment"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"middle"
class
=
"textupper"
>Recruitment agencies only</
td
>
</
tr
>
</
table
>
</
li
>
</
ul
>
</
li
>
</
ul
>
<
ul
class
=
"profileinfo"
>
<
li
>
<
span
class
=
"sidelistheading"
>Contact Details:</
span
> <
ul
class
=
"fff"
>
<
li
>
<
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"120"
>FirstName:</
td
>
<
td
height
=
"40"
align
=
"left"
valign
=
"top"
><
div
class
=
"contactdetal-profiltext-feald"
>
<
asp:TextBox
ID
=
"txtFirstName"
runat
=
"server"
></
asp:TextBox
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator1"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"txtFirstName"
></
asp:RequiredFieldValidator
>
</
div
>
</
td
>
</
tr
>
<
tr
>
<
td
>Last Name:</
td
>
<
td
height
=
"40"
align
=
"left"
valign
=
"top"
><
div
class
=
"contactdetal-profiltext-feald"
>
<
asp:TextBox
ID
=
"txtLastName"
runat
=
"server"
></
asp:TextBox
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator2"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"txtLastName"
></
asp:RequiredFieldValidator
>
</
div
></
td
>
</
tr
>
<
tr
>
<
td
>Telephone Number:</
td
>
<
td
><
div
class
=
"contactdetal-profiltext-feald"
>
<
asp:TextBox
ID
=
"txtTelephoneNumber"
runat
=
"server"
></
asp:TextBox
>
</
div
></
td
>
</
tr
>
</
table
>
</
li
>
</
ul
>
</
li
>
</
ul
>
<
ul
class
=
"profileinfo"
>
<
li
>
<
span
class
=
"sidelistheading"
>Your Details:</
span
><
ul
class
=
"fff"
>
<
li
>
<
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
colspan
=
"5"
align
=
"left"
valign
=
"top"
>
<
table
width
=
"390"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"290"
height
=
"30"
align
=
"left"
valign
=
"top"
>
Are you a UK citizen or eligible to work in the UK?</
td
>
<
td
width
=
"100"
align
=
"left"
valign
=
"top"
>
<
asp:RadioButtonList
ID
=
"rblIsUkCitizen"
Width
=
"100"
RepeatDirection
=
"Horizontal"
runat
=
"server"
>
<
asp:ListItem
Value
=
"1"
Text
=
"Yes"
></
asp:ListItem
>
<
asp:ListItem
Value
=
"0"
Text
=
"No"
></
asp:ListItem
>
</
asp:RadioButtonList
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator3"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"rblIsUkCitizen"
></
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
>
<
td
height
=
"30"
align
=
"left"
valign
=
"top"
>Are you able to drive?</
td
>
<
td
width
=
"100"
align
=
"left"
valign
=
"top"
>
<
asp:RadioButtonList
ID
=
"rblCanDrive"
Width
=
"100"
RepeatDirection
=
"Horizontal"
runat
=
"server"
>
<
asp:ListItem
Value
=
"1"
Text
=
"Yes"
></
asp:ListItem
>
<
asp:ListItem
Value
=
"0"
Text
=
"No"
></
asp:ListItem
>
</
asp:RadioButtonList
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator4"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"rblCanDrive"
></
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
>
<
td
height
=
"30"
align
=
"left"
valign
=
"top"
>
Do you have contactable references?</
td
>
<
td
width
=
"100"
align
=
"left"
valign
=
"top"
>
<
asp:RadioButtonList
ID
=
"rblIsReferences"
Width
=
"100"
RepeatDirection
=
"Horizontal"
runat
=
"server"
>
<
asp:ListItem
Value
=
"1"
Text
=
"Yes"
></
asp:ListItem
>
<
asp:ListItem
Value
=
"0"
Text
=
"No"
></
asp:ListItem
>
</
asp:RadioButtonList
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator5"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"rblIsReferences"
></
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
>
<
td
height
=
"30"
align
=
"left"
valign
=
"top"
>Do you have a CRB check?</
td
>
<
td
width
=
"100"
align
=
"left"
valign
=
"top"
>
<
asp:RadioButtonList
ID
=
"rblIsCRBCheck"
Width
=
"100"
RepeatDirection
=
"Horizontal"
runat
=
"server"
>
<
asp:ListItem
Value
=
"1"
Text
=
"Yes"
></
asp:ListItem
>
<
asp:ListItem
Value
=
"0"
Text
=
"No"
></
asp:ListItem
>
</
asp:RadioButtonList
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator6"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"rblIsCRBCheck"
></
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
>
<
td
height
=
"46"
align
=
"left"
valign
=
"top"
>Do you have a 1st Aid Certificate?</
td
>
<
td
width
=
"100"
align
=
"left"
valign
=
"top"
>
<
asp:RadioButtonList
ID
=
"rblIsFirstAid"
Width
=
"100"
RepeatDirection
=
"Horizontal"
runat
=
"server"
>
<
asp:ListItem
Value
=
"1"
Text
=
"Yes"
></
asp:ListItem
>
<
asp:ListItem
Value
=
"0"
Text
=
"No"
></
asp:ListItem
>
</
asp:RadioButtonList
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator7"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"rblIsFirstAid"
>
</
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
</
table
></
td
>
</
tr
>
<
tr
>
<
td
height
=
"40"
colspan
=
"5"
align
=
"left"
valign
=
"top"
><
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"72"
>Experience:</
td
>
<
td
width
=
"48"
><
div
class
=
"tini-textfild"
>
<
asp:TextBox
ID
=
"txtExperience"
runat
=
"server"
></
asp:TextBox
>
</
div
></
td
>
<
td
class
=
"gray-color"
>Years
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator8"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"txtExperience"
>
</
asp:RequiredFieldValidator
></
td
>
</
tr
>
</
table
></
td
>
</
tr
>
<
tr
>
<
td
height
=
"39"
colspan
=
"5"
align
=
"left"
valign
=
"top"
><
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"105"
>Available to Work:</
td
>
<
td
>
<
div
class
=
"select-list "
>
<
div
class
=
"homepage-select"
>
<
asp:DropDownList
ID
=
"ddlAvailableToWork"
CssClass
=
"select-group-four"
runat
=
"server"
>
<
asp:ListItem
Value
=
"Available"
Text
=
"Available"
></
asp:ListItem
>
<
asp:ListItem
Value
=
"Within One Week"
Text
=
"Within One Week"
></
asp:ListItem
>
<
asp:ListItem
Value
=
"Within Two Weeks"
Text
=
"Within Two Weeks"
></
asp:ListItem
>
<
asp:ListItem
Value
=
"Within One Month"
Text
=
"Within One Month"
></
asp:ListItem
>
</
asp:DropDownList
>
</
div
>
</
div
></
td
>
</
tr
>
</
table
></
td
>
</
tr
>
<
tr
>
<
td
height
=
"65"
colspan
=
"5"
align
=
"left"
valign
=
"top"
><
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"32"
>For:</
td
>
<
td
width
=
"48"
><
div
class
=
"tini-textfild"
>
<
asp:TextBox
ID
=
"txtAvailable"
runat
=
"server"
></
asp:TextBox
>
</
div
></
td
>
<
td
class
=
"gray-color"
>Months (leave blank if you are available indefinitely)
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator9"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"txtAvailable"
>
</
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
</
table
></
td
>
</
tr
>
<
tr
>
<
td
height
=
"29"
colspan
=
"5"
align
=
"left"
valign
=
"top"
><
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"121"
>Area :</
td
>
<
td
width
=
"20"
align
=
"left"
valign
=
"top"
>
<
asp:RadioButton
ID
=
"rblEurope"
Checked
=
"true"
GroupName
=
"area"
runat
=
"server"
/>
</
td
>
<
td
width
=
"63"
align
=
"left"
valign
=
"middle"
class
=
"gray-color-01"
>Europe</
td
>
<
td
width
=
"19"
align
=
"left"
valign
=
"top"
class
=
"gray-color"
>
<
asp:RadioButton
ID
=
"tblMiddleEast"
GroupName
=
"area"
runat
=
"server"
/>
</
td
>
<
td
width
=
"87"
align
=
"left"
valign
=
"middle"
class
=
"gray-color-01"
>Middle East</
td
>
<
td
width
=
"19"
align
=
"left"
valign
=
"top"
>
<
asp:RadioButton
ID
=
"rblRussia"
GroupName
=
"area"
runat
=
"server"
/></
td
>
<
td
width
=
"63"
align
=
"left"
valign
=
"middle"
class
=
"gray-color-01"
>Russia</
td
>
<
td
width
=
"20"
align
=
"left"
valign
=
"top"
class
=
"gray-color"
>
<
asp:RadioButton
ID
=
"rblRestOfWorld"
GroupName
=
"area"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"middle"
class
=
"gray-color-01"
>The rest of the World</
td
>
</
tr
>
</
table
></
td
>
</
tr
>
<
tr
>
<
td
height
=
"46"
colspan
=
"5"
align
=
"left"
valign
=
"top"
><
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"120"
valign
=
"top"
class
=
"dd"
>Languages Spoken:</
td
>
<
td
height
=
"41"
align
=
"left"
valign
=
"top"
><
div
class
=
"contactdetal-profiltext-feald"
>
<
asp:TextBox
ID
=
"txtLanguages"
runat
=
"server"
></
asp:TextBox
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator10"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"txtLanguages"
>
</
asp:RequiredFieldValidator
>
</
div
></
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"dd"
>Current Location:</
td
>
<
td
height
=
"41"
align
=
"left"
valign
=
"top"
><
div
class
=
"contactdetal-profiltext-feald"
>
<
asp:TextBox
ID
=
"txtCurrentLocation"
runat
=
"server"
></
asp:TextBox
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator11"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"txtCurrentLocation"
>
</
asp:RequiredFieldValidator
>
</
div
></
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"dd"
>Short Description:</
td
>
<
td
height
=
"91"
align
=
"left"
valign
=
"top"
><
div
class
=
"jobdetail-textfild-03-03"
>
<
asp:TextBox
ID
=
"txtShortDescription"
Width
=
"270"
Height
=
"67"
runat
=
"server"
CssClass
=
"jobdetail-textfild-03-help"
TextMode
=
"MultiLine"
></
asp:TextBox
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator12"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"txtShortDescription"
>
</
asp:RequiredFieldValidator
>
</
div
></
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"dd"
>Experience:</
td
>
<
td
height
=
"91"
align
=
"left"
valign
=
"top"
><
div
class
=
"jobdetail-textfild-03-03"
>
<
asp:TextBox
ID
=
"txtExperienceDescription"
Width
=
"270"
Height
=
"67"
runat
=
"server"
CssClass
=
"jobdetail-textfild-03-help"
TextMode
=
"MultiLine"
></
asp:TextBox
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator13"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"txtExperienceDescription"
>
</
asp:RequiredFieldValidator
>
</
div
></
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"dd"
>Qualifications:</
td
>
<
td
height
=
"91"
align
=
"left"
valign
=
"top"
><
div
class
=
"jobdetail-textfild-03-03"
>
<
asp:TextBox
ID
=
"txtQualificationDescription"
Width
=
"270"
Height
=
"67"
runat
=
"server"
CssClass
=
"jobdetail-textfild-03-help"
TextMode
=
"MultiLine"
></
asp:TextBox
>
<
asp:RequiredFieldValidator
ID
=
"RequiredFieldValidator14"
Display
=
"Dynamic"
runat
=
"server"
ErrorMessage
=
"* Required"
ControlToValidate
=
"txtQualificationDescription"
>
</
asp:RequiredFieldValidator
>
</
div
></
td
>
</
tr
>
<
tr
>
<
td
valign
=
"top"
class
=
"dd"
> </
td
>
<
td
align
=
"left"
valign
=
"top"
>
<
asp:CheckBox
ID
=
"chShowPublicily"
runat
=
"server"
/>
<
span
class
=
"gray-color-02"
>Show Description, Experience and Qualifications publicly</
span
></
td
>
</
tr
>
</
table
></
td
>
</
tr
>
</
table
>
</
li
>
</
ul
>
</
li
>
</
ul
>
<
ul
class
=
"profileinfo"
>
<
li
>
<
span
class
=
"sidelistheading"
>Your CV: </
span
><
ul
class
=
"fff"
>
<
li
>
<
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
align
=
"left"
valign
=
"middle"
>
<
asp:Panel
ID
=
"cvpanel"
runat
=
"server"
>
<
asp:Literal
ID
=
"ltCvText"
runat
=
"server"
></
asp:Literal
>
<
asp:LinkButton
ID
=
"lnkCvDownload"
runat
=
"server"
CausesValidation
=
"false"
OnClick
=
"lnkCvDownload_Click"
>(view)</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"lnkCvDelete"
runat
=
"server"
CausesValidation
=
"false"
OnClick
=
"lnkCvDelete_Click"
>(delete)</
asp:LinkButton
>
</
asp:Panel
>
</
td
>
<
td
width
=
"74"
align
=
"left"
valign
=
"middle"
>
<
asp:Button
ID
=
"btnUploadCV"
runat
=
"server"
Text
=
"Upload"
CausesValidation
=
"false"
onclick
=
"btnUploadCV_Click"
CssClass
=
"upload-button"
/>
</
td
>
<
td
align
=
"left"
valign
=
"middle"
class
=
"gray-color"
>(.doc, .docx, .pdf)
<
asp:Literal
ID
=
"ltCVUploadMsg"
runat
=
"server"
></
asp:Literal
>
</
td
>
</
tr
>
</
table
>
</
li
>
</
ul
>
</
li
>
</
ul
>
<
ul
class
=
"profileinfo"
>
<
li
>
<
span
class
=
"sidelistheading"
>Your Photo: </
span
><
ul
class
=
"fff"
>
<
li
>
<
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"74"
height
=
"36"
align
=
"left"
valign
=
"top"
>
<
asp:Image
ID
=
"imgUploaded"
runat
=
"server"
/>
<
asp:Button
ID
=
"btnUploadImage"
CausesValidation
=
"false"
runat
=
"server"
OnClick
=
"btnUploadImage_Click"
Text
=
"Upload"
CssClass
=
"upload-button"
/>
</
td
>
<
td
align
=
"left"
valign
=
"top"
class
=
"gray-color-03"
>(.jpg, .gif, .png)
<
asp:Literal
ID
=
"ltImgUploadMsg"
runat
=
"server"
></
asp:Literal
></
td
>
</
tr
>
<%--<
tr
>
<
td
colspan
=
"2"
align
=
"left"
valign
=
"top"
>
<
asp:CheckBox
ID
=
"chShowImage"
runat
=
"server"
/>
<
span
class
=
"gray-color-02"
>Show photo publicly</
span
></
td
>
</
tr
>--%>
</
table
>
</
li
>
</
ul
>
</
li
>
</
ul
>
<
ul
class
=
"profileinfo"
>
<
li
>
<
span
class
=
"sidelistheading"
>Select Your Criteria: </
span
><
ul
class
=
"fff"
>
<
li
>
<
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"94"
height
=
"26"
align
=
"left"
valign
=
"top"
><
table
width
=
"300"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"56"
align
=
"left"
valign
=
"middle"
>Hours:</
td
>
<
td
width
=
"21"
align
=
"left"
valign
=
"middle"
>
<
asp:CheckBox
ID
=
"chFullTime"
runat
=
"server"
/>
</
td
>
<
td
width
=
"76"
align
=
"left"
valign
=
"middle"
class
=
"gray-color-05"
>Full-time</
td
>
<
td
width
=
"20"
align
=
"left"
valign
=
"middle"
>
<
asp:CheckBox
ID
=
"chPartTime"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"middle"
class
=
"gray-color"
>Part-time</
td
>
</
tr
>
</
table
></
td
>
</
tr
>
<
tr
>
<
td
height
=
"35"
align
=
"left"
valign
=
"top"
><
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"69"
align
=
"left"
valign
=
"middle"
>Job Type:</
td
>
<
td
width
=
"21"
align
=
"left"
valign
=
"middle"
>
<
asp:CheckBox
ID
=
"chPermanent"
runat
=
"server"
/></
td
>
<
td
width
=
"81"
align
=
"left"
valign
=
"middle"
class
=
"gray-color-05"
>Permanent</
td
>
<
td
width
=
"20"
align
=
"left"
valign
=
"middle"
>
<
asp:CheckBox
ID
=
"chTemporty"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"middle"
class
=
"gray-color-05"
>Temporary/Contract</
td
>
</
tr
>
</
table
></
td
>
</
tr
>
<
tr
>
<
td
height
=
"21"
align
=
"left"
valign
=
"top"
>Specialism :</
td
>
</
tr
>
<
tr
>
<
td
height
=
"19"
align
=
"left"
valign
=
"top"
class
=
"gray-color-04"
>Nanny & Childcare</
td
>
</
tr
>
<
tr
>
<
td
align
=
"left"
valign
=
"top"
><
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
width
=
"27"
align
=
"left"
valign
=
"top"
></
td
>
<
td
width
=
"159"
height
=
"9"
align
=
"left"
valign
=
"top"
class
=
"gray-color"
></
td
>
<
td
width
=
"26"
align
=
"left"
valign
=
"top"
></
td
>
<
td
width
=
"127"
align
=
"left"
valign
=
"top"
class
=
"gray-color"
></
td
>
<
td
width
=
"26"
align
=
"left"
valign
=
"top"
></
td
>
<
td
align
=
"left"
valign
=
"top"
class
=
"gray-color"
></
td
>
</
tr
>
<
tr
>
<
td
width
=
"27"
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chAuPair"
runat
=
"server"
/></
td
>
<
td
width
=
"159"
height
=
"30"
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Au Pair </
td
>
<
td
width
=
"26"
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chBabySitter"
runat
=
"server"
/></
td
>
<
td
width
=
"127"
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Babysitter </
td
>
<
td
width
=
"26"
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chChildminder"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Childminder </
td
>
</
tr
>
<
tr
>
<
td
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chDoula"
runat
=
"server"
/></
td
>
<
td
height
=
"30"
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Doula</
td
>
<
td
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chMaternity"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Maternity Nurse </
td
>
<
td
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chMothers"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Mothers/Fathers Help</
td
>
</
tr
>
<
tr
>
<
td
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chNannyLiveIn"
runat
=
"server"
/></
td
>
<
td
height
=
"30"
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Nanny (live-in) </
td
>
<
td
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chNannyLiveOut"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Nanny (live-out) </
td
>
<
td
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chNannyHousekeeper"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Nanny/Housekeeper </
td
>
</
tr
>
<
tr
>
<
td
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chNannyPersonal"
runat
=
"server"
/></
td
>
<
td
height
=
"30"
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Nanny/Personal Assistant </
td
>
<
td
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chNightNanny"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Night Nanny </
td
>
<
td
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chResortChildcare"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Resort Childcare </
td
>
</
tr
>
<
tr
>
<
td
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chSecialNeeds"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Special Needs Childcare</
td
>
<
td
align
=
"left"
valign
=
"top"
><
asp:CheckBox
ID
=
"chOthers"
runat
=
"server"
/></
td
>
<
td
align
=
"left"
valign
=
"top"
class
=
"gray-color-05"
>Other </
td
>
<
td
align
=
"left"
valign
=
"top"
> </
td
>
<
td
align
=
"left"
valign
=
"top"
class
=
"gray-color"
> </
td
>
</
tr
>
</
table
></
td
>
</
tr
>
</
table
>
</
li
>
</
ul
>
</
li
>
</
ul
>
<
ul
class
=
"profileinfo"
>
<
li
>
<
div
class
=
"sidelistheading"
>
<
asp:Button
ID
=
"btnSubmit"
runat
=
"server"
Text
=
"SAVE"
CssClass
=
"save-btn"
onclick
=
"btnSubmit_Click"
/>
<%--<
input
name
=
""
type
=
"button"
class
=
"cancel-btn"
value
=
"CANCEL"
>--%></
div
>
</
li
>
</
ul
>
</
div
>
<!-- end: textfild -->
</
div
>
</
telerik:RadAjaxPanel
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
Height
=
"75px"
Width
=
"75px"
Transparency
=
"30"
>
<
img
alt
=
"Loading..."
src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
style="border: 0px;" />
</
telerik:RadAjaxLoadingPanel
>
</
asp:Content
>
public partial class NannyProfile : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Page.User.Identity.IsAuthenticated == false)
Response.Redirect("~/login.aspx");
if (!IsPostBack)
{
applyLocalisation();
bindData();
}
}
void applyLocalisation()
{
this.Page.Title = "Complete your profile";
}
void bindData()
{
cvpanel.Visible = false;
imgUploaded.Visible = false;
MembershipUserCollection muc = Membership.FindUsersByName(Page.User.Identity.Name);
MembershipUser mu = muc[Page.User.Identity.Name];
if (mu != null)
{
NJC.Business.NannyProfile.NannyProfile nf = NannyProfileManager.GetNannyProfileByUserId((Guid)mu.ProviderUserKey);
if (nf != null)
{
txtFirstName.Text = nf.FirstName;
txtLastName.Text = nf.LastName;
}
}
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
}
}
protected void btnUploadCV_Click(object sender, EventArgs e)
{
RadWindow rw = new RadWindow();
rw.ID = "rw1";
rw.VisibleOnPageLoad = true;
rw.Width = Unit.Pixel(460);
rw.Height = Unit.Pixel(50);
rw.OnClientClose = "refreshCV";
rw.NavigateUrl = "~/uploadfile.aspx?uploadtype=cv";
rw.ReloadOnShow = true;
WindowBehaviors wb = new WindowBehaviors();
wb = WindowBehaviors.Close;
rw.Behaviors = wb;
rw.Skin = "Vista";
RadWindowManager1.Windows.Add(rw);
}
protected void btnUploadImage_Click(object sender, EventArgs e)
{
RadWindow rw = new RadWindow();
rw.ID = "rw1";
rw.VisibleOnPageLoad = true;
rw.Width = Unit.Pixel(460);
rw.Height = Unit.Pixel(50);
rw.OnClientClose = "refreshImg";
rw.NavigateUrl = "~/uploadfile.aspx?uploadtype=image";
rw.ReloadOnShow = true;
WindowBehaviors wb = new WindowBehaviors();
wb = WindowBehaviors.Close;
rw.Behaviors = wb;
rw.Skin = "Vista";
RadWindowManager1.Windows.Add(rw);
}
protected void RadAjaxPanel1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument == "RebindCV")
{
MembershipUserCollection muc = Membership.FindUsersByName(Page.User.Identity.Name);
MembershipUser mu = muc[Page.User.Identity.Name];
NJC.Business.NannyProfile.NannyCvCollection ncc = NannyProfileManager.GetNannyCvByUserId((Guid)mu.ProviderUserKey);
if (ncc.Count == 0)
{
NannyCv nc = ncc[0];
ltCvText.Text = nc.CvPublicName; //"<
a
href=\"" + Server.MapPath("~/uploads/cvs/") + nf.CvLink + "\">" + nf.CvPublicName + "</
a
>";
ltCVUploadMsg.Text = "CV Uploaded.";
cvpanel.Visible = true;
}
}
else if (e.Argument == "RebindImg")
{
MembershipUserCollection muc = Membership.FindUsersByName(Page.User.Identity.Name);
MembershipUser mu = muc[Page.User.Identity.Name];
NJC.Business.NannyProfile.NannyPicturesCollection npc = NannyProfileManager.GetNannyPicturesByUserId((Guid)mu.ProviderUserKey);
if (npc.Count == 1)
{
NannyPictures np = npc[0];
imgUploaded.ImageUrl = System.Configuration.ConfigurationManager.AppSettings["websiteaddress"].ToString() + "uploads/images/" + np.ImgName; //"<
a
href=\"" + Server.MapPath("~/uploads/cvs/") + nf.CvLink + "\">" + nf.CvPublicName + "</
a
>";
ltImgUploadMsg.Text = "Image Uploaded.";
}
}
}
protected void lnkCvDownload_Click(object sender, EventArgs e)
{
MembershipUserCollection muc = Membership.FindUsersByName(Page.User.Identity.Name);
MembershipUser mu = muc[Page.User.Identity.Name];
if (mu != null)
{
NJC.Business.NannyProfile.NannyCvCollection ncc = NannyProfileManager.GetNannyCvByUserId((Guid)mu.ProviderUserKey);
if (ncc.Count == 0)
{
NannyCv nc = ncc[0];
if (!string.IsNullOrEmpty(nc.CvName))
{
System.IO.FileInfo file = new System.IO.FileInfo(Server.MapPath("~/uploads/cvs/" + nc.CvName));
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" + nc.CvPublicName);
Response.AddHeader("Content-Length", file.Length.ToString());
Response.ContentType = nc.ContentType;
Response.WriteFile(file.FullName);
Response.End();
}
}
}
}
protected void lnkCvDelete_Click(object sender, EventArgs e)
{
MembershipUserCollection muc = Membership.FindUsersByName(Page.User.Identity.Name);
MembershipUser mu = muc[Page.User.Identity.Name];
if (mu != null)
{
NJC.Business.NannyProfile.NannyCvCollection ncc = NannyProfileManager.GetNannyCvByUserId((Guid)mu.ProviderUserKey);
if (ncc.Count == 0)
{
NannyCv nc = ncc[0];
if (!string.IsNullOrEmpty(nc.CvName))
{
System.IO.File.Delete(Server.MapPath("~/uploads/cvs/" + nc.CvName));
if (NannyProfileManager.DeleteNannyCv(nc.NannyCvsId))
{
ltCvText.Text = ""; //"<
a
href=\"" + Server.MapPath("~/uploads/cvs/") + nf.CvLink + "\">" + nf.CvPublicName + "</
a
>";
ltCVUploadMsg.Text = "CV Deleted.";
cvpanel.Visible = false;
}
else
{
ltCVUploadMsg.Text = "An internal error has occured.";
}
}
}
}
}
}
.RadDock_Office2007
.rdTitle
{
text-align:left !important;
padding-left: 5px;
}
.RadDock_Office2007
.rdHTitlebar .rdTitle {
background-color:Transparent !important;
padding-left: 5px;
}