<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Tagprefix="Selectors" Namespace="Persons" %>

<%@ Register Tagprefix="Persons" Namespace="Persons.UI.Controls.EditPersonRelativeTable" %>

<%@ Register Tagprefix="BaseClasses" Namespace="BaseClasses.Web.UI.WebControls" Assembly="BaseClasses" %>
<%@ Register Tagprefix="Persons" TagName="Pagination" Src="../Shared/Pagination.ascx" %>

<%@ Page Language="vb" EnableEventValidation="false" AutoEventWireup="false" CodeFile="EditPersonRelativeTable.aspx.vb" Culture="th-TH" MasterPageFile="..\Master Pages\HorPersonalmenu.master" Inherits="Persons.UI.EditPersonRelativeTable" %><asp:Content id="PageSection" ContentPlaceHolderID="PageContent" Runat="server">
    <a id="StartOfPageContent"></a>
    <asp:UpdateProgress runat="server" id="UpdatePanel1_UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel1">
			<ProgressTemplate>
				<div class="ajaxUpdatePanel">
				</div>
				<div style=" position:absolute; padding:30px;">
					<img src="../Images/updating.gif" alt="Updating" />
				</div>
			</ProgressTemplate>
		</asp:UpdateProgress>
		<asp:UpdatePanel runat="server" id="UpdatePanel1" UpdateMode="Conditional">
			<ContentTemplate>
				<input type="hidden" id="_clientSideIsPostBack" name="clientSideIsPostBack" runat="server" />

                <table cellpadding="0" cellspacing="0" border="0"><tr><td>
                        <Persons:PersonRelativeTableControl runat="server" id="PersonRelativeTableControl">	<table class="dv" cellpadding="0" cellspacing="0" border="0"><tr><td class="dh"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="dhel"><img src="../Images/space.gif" alt="" /></td><td class="dheci" valign="middle"><asp:CollapsiblePanelExtender id="PersonRelativeTableControlPanelExtender" runat="server" TargetControlid="PersonRelativeTableControlCollapsibleRegion" ExpandControlID="PersonRelativeTableControlIcon" CollapseControlID="PersonRelativeTableControlIcon" ImageControlID="PersonRelativeTableControlIcon" ExpandedImage="~/images/icon_panelcollapse.gif" CollapsedImage="~/images/icon_panelexpand.gif" SuppressPostBack="true" />
<asp:ImageButton id="PersonRelativeTableControlIcon" runat="server" ToolTip="&lt;%# GetResourceValue(&quot;Btn:ExpandCollapse&quot;) %&gt;" causesvalidation="False" imageurl="~/images/icon_panelcollapse.gif" /></td><td class="dhb"><table cellpadding="0" cellspacing="0" border="0"><tr><td class="dhtr" valign="middle"><asp:Literal runat="server" id="PersonRelativeTitle" Text="&lt;%#String.Concat(&quot;Person Relative&quot;) %>">	</asp:Literal></td></tr></table>
</td><td class="dher"><img src="../Images/space.gif" alt="" /></td></tr></table>
</td></tr><tr><td><asp:panel id="PersonRelativeTableControlCollapsibleRegion" runat="server"><table class="dBody" cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td class="pr"><table cellpadding="0" cellspacing="0" border="0"><tr><td><img src="../Images/paginationRowEdgeL.gif" alt="" /></td><td class="prbbc"><img src="../Images/ButtonBarEdgeL.gif" alt="" /></td><td class="prbbc"><img src="../Images/ButtonBarDividerL.gif" alt="" /></td><td class="prbbc"><asp:ImageButton runat="server" id="PersonRelativeAddButton" causesvalidation="false" commandname="AddRecord" imageurl="../Images/ButtonBarNew.gif" onmouseout="this.src='../Images/ButtonBarNew.gif'" onmouseover="this.src='../Images/ButtonBarNewOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Add&quot;, &quot;Persons&quot;) %>">		
	</asp:ImageButton></td><td class="prbbc"><asp:ImageButton runat="server" id="PersonRelativeEditButton" causesvalidation="false" commandname="Redirect" imageurl="../Images/ButtonBarEdit.gif" onmouseout="this.src='../Images/ButtonBarEdit.gif'" onmouseover="this.src='../Images/ButtonBarEditOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Edit&quot;, &quot;Persons&quot;) %>">		
	</asp:ImageButton></td><td class="prbbc"><asp:ImageButton runat="server" id="PersonRelativeDeleteButton" causesvalidation="false" commandargument="DeleteOnUpdate" commandname="DeleteRecord" imageurl="../Images/ButtonBarDelete.gif" onmouseout="this.src='../Images/ButtonBarDelete.gif'" onmouseover="this.src='../Images/ButtonBarDeleteOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Delete&quot;, &quot;Persons&quot;) %>">		
	</asp:ImageButton></td><td class="prbbc"><asp:ImageButton runat="server" id="PersonRelativeSaveButton" causesvalidation="true" commandname="UpdateData" imageurl="../Images/ButtonBarSave.gif" onmouseout="this.src='../Images/ButtonBarSave.gif'" onmouseover="this.src='../Images/ButtonBarSaveOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Save&quot;, &quot;Persons&quot;) %>">		
	</asp:ImageButton></td><td class="prbbc"><asp:ImageButton runat="server" id="PersonRelativeRefreshButton" causesvalidation="false" commandname="ResetData" imageurl="../Images/ButtonBarRefresh.gif" onmouseout="this.src='../Images/ButtonBarRefresh.gif'" onmouseover="this.src='../Images/ButtonBarRefreshOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Refresh&quot;, &quot;Persons&quot;) %>">		
	</asp:ImageButton></td><td class="prbbc"><asp:ImageButton runat="server" id="PersonRelativeResetButton" causesvalidation="false" commandname="ResetFilters" imageurl="../Images/ButtonBarReset.gif" onmouseout="this.src='../Images/ButtonBarReset.gif'" onmouseover="this.src='../Images/ButtonBarResetOver.gif'" tooltip="&lt;%# GetResourceValue(&quot;Btn:Reset&quot;, &quot;Persons&quot;) %>">		
	</asp:ImageButton></td><td class="prbbc"><img src="../Images/ButtonBarDividerR.gif" alt="" /></td><td class="prbbc"><img src="../Images/ButtonBarEdgeR.gif" alt="" /></td><td class="pra"><Persons:Pagination runat="server" id="PersonRelativePagination"></Persons:Pagination></td><td><img src="../Images/paginationRowEdgeR.gif" alt="" /></td><td width="100%">&nbsp;</td></tr></table>
</td></tr><tr><td class="tre"><table cellpadding="0" cellspacing="0" border="0" width="100%" onkeydown="captureUpDownKey(this, event)"><tr class="tch"><th class="thcnb" colspan="3"><img src="../Images/space.gif" height="1" width="1" alt="" /></th><th class="thcwb" style="padding:0px;vertical-align:middle;"><asp:CheckBox runat="server" id="PersonRelativeToggleAll" onclick="toggleAllCheckboxes(this);">	</asp:CheckBox></th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RelationIdLabel1" Text="เป็น" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RPreNameLabel" Text="คำนำหน้า" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RFirstNameLabel" Text="ชื่อ" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RLastNameLabel" Text="นามสกุล" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="ROrLastNameLabel" Text="นามสกุลเดิม" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="FNameLabel" Text="ชื่อบิดา" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="FLastNameLabel" Text="นามสกุล" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="MNameLabel" Text="ชื่อมารดา" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="MLastNameLabel" Text="นามสกุล" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="MOrLastNameLabel" Text="นามสกุลเดิม" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="ROriginLabel" Text="เชื่อชาติ" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RNationalityLabel" Text="สัญชาติ" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RReligionLabel" Text="ศาสนา" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RAddressLabel" Text="ที่อยู่" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RAmphurLabel" Text="อำเภอ" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RProvinceLabel" Text="จังหวัด" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RBirthDateLabel" Text="วันเกิด" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RefLabel" Text="หลักฐาน" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RefDateLabel" Text="ลงวันที่" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RStatusLabel" Text="สถานภาพ" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RStatusRefLabel" Text="หลักฐาน" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RStatusDateLabel" Text="ลงวันที่" CausesValidation="False">	</asp:LinkButton>
                        </th><th class="thc" scope="col"><asp:LinkButton runat="server" id="RRemarkLabel" Text="หมายเหตุ" CausesValidation="False">	</asp:LinkButton>
                        </th></tr><asp:Repeater runat="server" id="PersonRelativeTableControlRepeater">		<ITEMTEMPLATE>		<Persons:PersonRelativeTableControlRow runat="server" id="PersonRelativeTableControlRow">
<tr><td class="ticnb" scope="row"></td><td class="ticnb" scope="row"><asp:ImageButton runat="server" id="PersonRelativeRowEditButton" causesvalidation="False" commandname="Redirect" cssclass="button_link" imageurl="../Images/icon_edit.gif" tooltip="&lt;%# GetResourceValue(&quot;Txt:EditRecord&quot;, &quot;Persons&quot;) %>">		
	</asp:ImageButton></td><td class="ticnb" scope="row"><asp:ImageButton runat="server" id="PersonRelativeRowDeleteButton" causesvalidation="False" commandargument="DeleteOnUpdate" commandname="DeleteRecord" cssclass="button_link" imageurl="../Images/icon_delete.gif" tooltip="&lt;%# GetResourceValue(&quot;Txt:DeleteRecord&quot;, &quot;Persons&quot;) %>">		
	</asp:ImageButton></td><td class="ticwb"><asp:CheckBox runat="server" id="PersonRelativeRecordRowSelection" onclick="moveToThisTableRow(this);">	</asp:CheckBox></td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:DropDownList runat="server" id="RelationId" cssclass="field_input" onkeypress="dropDownListTypeAhead(this,false)"></asp:DropDownList>
<Selectors:FvLlsHyperLink runat="server" id="RelationIdFvLlsHyperLink" ControlToUpdate="RelationId" Text="&lt;%# GetResourceValue(&quot;LLS:Text&quot;, &quot;Persons&quot;) %>" MinListItems="100" Table="relation" Field="Relation_.RelationId" DisplayField="Relation_.Relation"></Selectors:FvLlsHyperLink></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="RPreName" MaxLength="50" columns="11" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RPreNameTextBoxMaxLengthValidator" ControlToValidate="RPreName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;คำนำหน้า&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
  
<span style="white-space:nowrap;">
<asp:DropDownList runat="server" id="PersonalId" cssclass="field_input" onkeypress="dropDownListTypeAhead(this,false)" visible="False"></asp:DropDownList>
<Selectors:FvLlsHyperLink runat="server" id="PersonalIdFvLlsHyperLink" ControlToUpdate="PersonalId" Text="&lt;%# GetResourceValue(&quot;LLS:Text&quot;, &quot;Persons&quot;) %>" MinListItems="100" Visible="False" Table="PersonalId" Field="PersonalId_.PersonalId" DisplayField="PersonalId_.PersonalName"></Selectors:FvLlsHyperLink>&nbsp;
<asp:RequiredFieldValidator runat="server" id="PersonalIdRequiredFieldValidator" ControlToValidate="PersonalId" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueIsRequired&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;Personal&quot;) %>" enabled="True" initialvalue="--PLEASE_SELECT--" text="*"></asp:RequiredFieldValidator></span>
</td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="RFirstName" MaxLength="50" columns="11" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RFirstNameTextBoxMaxLengthValidator" ControlToValidate="RFirstName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;ชื่อ&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="RLastName" MaxLength="50" columns="11" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RLastNameTextBoxMaxLengthValidator" ControlToValidate="RLastName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;นามสกุล&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="ROrLastName" MaxLength="50" columns="11" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ROrLastNameTextBoxMaxLengthValidator" ControlToValidate="ROrLastName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;นามสกุลเดิม&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="FName" MaxLength="50" columns="11" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="FNameTextBoxMaxLengthValidator" ControlToValidate="FName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;ชื่อบิดา&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="FLastName" MaxLength="50" columns="11" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="FLastNameTextBoxMaxLengthValidator" ControlToValidate="FLastName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;นามสกุล&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="MName" MaxLength="50" columns="11" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="MNameTextBoxMaxLengthValidator" ControlToValidate="MName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;ชื่อมารดา&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="MLastName" MaxLength="50" columns="11" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="MLastNameTextBoxMaxLengthValidator" ControlToValidate="MLastName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;นามสกุล&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="MOrLastName" MaxLength="50" columns="11" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="MOrLastNameTextBoxMaxLengthValidator" ControlToValidate="MOrLastName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;นามสกุลเดิม&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="ROrigin" MaxLength="50" columns="4" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ROriginTextBoxMaxLengthValidator" ControlToValidate="ROrigin" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;เชื่อชาติ&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="RNationality" MaxLength="50" columns="4" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RNationalityTextBoxMaxLengthValidator" ControlToValidate="RNationality" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;สัญชาติ&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="RReligion" MaxLength="50" columns="4" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RReligionTextBoxMaxLengthValidator" ControlToValidate="RReligion" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;ศาสนา&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="RAddress" MaxLength="50" columns="20" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RAddressTextBoxMaxLengthValidator" ControlToValidate="RAddress" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;ที่อยู่&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="RAmphur" MaxLength="50" columns="10" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RAmphurTextBoxMaxLengthValidator" ControlToValidate="RAmphur" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;อำเภอ&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="RProvince" MaxLength="50" columns="10" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RProvinceTextBoxMaxLengthValidator" ControlToValidate="RProvince" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;จังหวัด&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding-right: 5px; vertical-align:top">
<asp:TextBox runat="server" id="RBirthDate" MaxLength="20" columns="11" cssclass="field_input" dataformat="d MMM yyyy"></asp:TextBox></td>
<td>
<Selectors:CalendarExtendarClass runat="server" ID="RBirthDateCalendarExtender" TargetControlID="RBirthDate" CssClass="MyCalendar" Format="d MMM yyyy">
</Selectors:CalendarExtendarClass>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RBirthDateTextBoxMaxLengthValidator" ControlToValidate="RBirthDate" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;วันเกิด&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></td>
</tr>
</table>
</span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="Ref1" MaxLength="100" columns="20" cssclass="field_input" rows="2"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="Ref1TextBoxMaxLengthValidator" ControlToValidate="Ref1" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;หลักฐาน&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding-right: 5px; vertical-align:top">
<asp:TextBox runat="server" id="RefDate" MaxLength="20" columns="11" cssclass="field_input" dataformat="d MMM yyyy"></asp:TextBox></td>
<td>
<Selectors:CalendarExtendarClass runat="server" ID="RefDateCalendarExtender" TargetControlID="RefDate" CssClass="MyCalendar" Format="d MMM yyyy">
</Selectors:CalendarExtendarClass>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RefDateTextBoxMaxLengthValidator" ControlToValidate="RefDate" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;ลงวันที่&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></td>
</tr>
</table>
</span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:DropDownList runat="server" id="RStatus" cssclass="field_input" onkeypress="dropDownListTypeAhead(this,false)"></asp:DropDownList>
<Selectors:FvLlsHyperLink runat="server" id="RStatusFvLlsHyperLink" ControlToUpdate="RStatus" Text="&lt;%# GetResourceValue(&quot;LLS:Text&quot;, &quot;Persons&quot;) %>" MinListItems="100" Table="RStatus" Field="RStatus_.RStatusId" DisplayField="RStatus_.RStatus"></Selectors:FvLlsHyperLink></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="RStatusRef" MaxLength="100" columns="20" cssclass="field_input" rows="2"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RStatusRefTextBoxMaxLengthValidator" ControlToValidate="RStatusRef" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;หลักฐาน&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="padding-right: 5px; vertical-align:top">
<asp:TextBox runat="server" id="RStatusDate" MaxLength="20" columns="11" cssclass="field_input" dataformat="d MMM yyyy"></asp:TextBox></td>
<td>
<Selectors:CalendarExtendarClass runat="server" ID="RStatusDateCalendarExtender" TargetControlID="RStatusDate" CssClass="MyCalendar" Format="d MMM yyyy">
</Selectors:CalendarExtendarClass>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RStatusDateTextBoxMaxLengthValidator" ControlToValidate="RStatusDate" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;ลงวันที่&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></td>
</tr>
</table>
</span>
 </td><td class="ttc" style="white-space:nowrap;"><span style="white-space:nowrap;">
<asp:TextBox runat="server" id="RRemark" MaxLength="50" columns="20" cssclass="field_input"></asp:TextBox>&nbsp;
<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RRemarkTextBoxMaxLengthValidator" ControlToValidate="RRemark" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Persons&quot;).Replace(&quot;{FieldName}&quot;, &quot;หมายเหตุ&quot;) %>"></BaseClasses:TextBoxMaxLengthValidator></span>
 </td></tr></Persons:PersonRelativeTableControlRow>
</ITEMTEMPLATE>

</asp:Repeater>
</table>
</td></tr></table>
</asp:panel></td></tr></table>
</Persons:PersonRelativeTableControl>

            </td></tr></table>
    </ContentTemplate>
</asp:UpdatePanel>

    <div id="detailPopup" class="detailRolloverPopup" onmouseout="detailRolloverPopupClose();" onmouseover="clearTimeout(gPopupTimer);"></div>
    <asp:ValidationSummary id="ValidationSummary1" ShowMessageBox="true" ShowSummary="false" runat="server"></asp:ValidationSummary>
</asp:Content>
                