<%@ Register Tagprefix="UseDAL" TagName="Pagination" Src="../Shared/Pagination.ascx" %>

<%@ Register Tagprefix="UseDAL" TagName="Menu" Src="../Menu Panels/Menu.ascx" %>

<%@ Register Tagprefix="UseDAL" TagName="Header" Src="../Header and Footer/Header.ascx" %>

<%@ Register Tagprefix="UseDAL" TagName="ThemeButton" Src="../Shared/ThemeButton.ascx" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Page Language="vb" EnableEventValidation="false" AutoEventWireup="false" CodeFile="EditCustomers.aspx.vb" Culture="en-US" Inherits="UseDAL.UI.EditCustomers" %>
<%@ Register Tagprefix="UseDAL" TagName="Footer" Src="../Header and Footer/Footer.ascx" %>

<%@ Register Tagprefix="BaseClasses" Namespace="BaseClasses.Web.UI.WebControls" Assembly="BaseClasses" %>
<%@ Register Tagprefix="UseDAL" Namespace="UseDAL.UI.Controls.EditCustomers" %>

<%@ Register Tagprefix="Selectors" Namespace="UseDAL" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    <title><asp:Literal runat="server" id="PageTitle" Text="&lt;%#String.Concat(GetResourceValue(&quot;Title:Edit&quot;, &quot;UseDAL&quot;),&quot; Customers&quot;) %>">
</asp:Literal></title>
    <link rel="stylesheet" rev="stylesheet" type="text/css" href="../Styles/BaseStyles.css"/>
    <link rel="stylesheet" rev="stylesheet" type="text/css" href="../Styles/Styles.css"/>
    </head>
    <body id="Body1" runat="server" class="pBack">
    <form id="Form1" method="post" runat="server"><BaseClasses:ScrollCoordinates id="ScrollCoordinates" runat="server"></BaseClasses:ScrollCoordinates>
        <BaseClasses:BasePageSettings id="PageSettings" runat="server"></BaseClasses:BasePageSettings>
        <script language="JavaScript" type="text/javascript">clearRTL()</script>
		<asp:ScriptManager ID="scriptManager1" runat="server" EnablePartialRendering="True" EnablePageMethods="True" EnableScriptGlobalization="True" EnableScriptLocalization="True" />
		
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
        <tr>
        <td class="pAlign">
        <table cellspacing="0" cellpadding="0" border="0" class="pbTable">
            <tr>
            <td class="pbTL"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbT"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbTR"><img src="../Images/space.gif" alt=""/></td>
            </tr>
            <tr>
            <td class="pbL"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbC">
            <table cellspacing="0" cellpadding="0" border="0" class="pcTable">
            <tr>
                <td class="pcT" colspan="2">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                <tr>
                <td>
                </td>
            </tr>
            </table>
            <table cellspacing="0" cellpadding="0" border="0" width="100%">
            <tr>
            <td>
<!-- #Region PageHeader --> <UseDAL:Header runat="server" id="PageHeader">
		</UseDAL:Header><!-- #EndRegion PageHeader -->
			</td>
            </tr>
            </table>
            </td>
            <td class="pcTR"></td>
            </tr>
            <tr>
                <td class="pcL">
<!-- #Region VerticalMenu --> 
                     
<!-- #EndRegion VerticalMenu -->
				</td>
                <td class="pcC">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                <tr>
                <td>
<!-- #Region HorizontalMenu -->
                    <UseDAL:Menu runat="server" id="Menu" hilitesettings="CustomersMenuItem">
		</UseDAL:Menu>
<!-- #EndRegion HorizontalMenu -->
				</td>
                </tr>
                <tr>
                    <td>
                        <table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <tr>
                        <td class="pContent"><a name="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=""/>
						</div>
					</ProgressTemplate>
				</asp:UpdateProgress>
				<asp:UpdatePanel runat="server" id="UpdatePanel1" UpdateMode="Conditional">
					<ContentTemplate>
						
<UseDAL:CustomersRecordControl runat="server" id="CustomersRecordControl">
									

 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("CancelButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("EditButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("OKButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("SaveAndNewButton$_Button")) %>
  <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("SaveButton$_Button")) %>
		
    <table class="dv" cellpadding="0" cellspacing="0" border="0">
<!-- #Region PanelHeader -->
		<tr>
			<td class="dh">
				<table cellpadding="0" cellspacing="0" width="100%" border="0">
					<tr>
						<td class="dhel"><img src="../Images/space.gif" alt=""/></td>
						<td class="dheci" valign="middle"><asp:CollapsiblePanelExtender id="CustomersRecordControlCPExtender" runat="server" TargetControlid="CustomersRecordControlCollapsibleRegion" ExpandControlID="CustomersRecordControlToggleIcon" CollapseControlID="CustomersRecordControlToggleIcon" ImageControlID="CustomersRecordControlToggleIcon" ExpandedImage="~/images/icon_panelcollapse.gif" CollapsedImage="~/images/icon_panelexpand.gif" SuppressPostBack="true"/>
						<asp:ImageButton id="CustomersRecordControlToggleIcon" runat="server" alternatetext="&lt;%# GetResourceValue(&quot;Btn:ExpandCollapse&quot;, &quot;UseDAL&quot;) %>" 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="CustomersTitle" Text="&lt;%#String.Concat(GetResourceValue(&quot;Title:Edit&quot;, &quot;UseDAL&quot;),&quot; Customers&quot;) %>">
									</asp:Literal></td>
								</tr>
							</table>
						</td>
						<td class="dher"><img src="../Images/space.gif" alt=""/></td>
					</tr>
				</table>
			</td>
		</tr>
<!-- #EndRegion PanelHeader -->
		<tr>
			<td>
				<asp:panel id="CustomersRecordControlCollapsibleRegion" runat="server">
				<table class="dBody" cellpadding="0" cellspacing="0" border="0" width="100%">
					<tr>
						<td>
<!-- #Region SearchFilter -->
<!-- #EndRegion SearchFilter -->
							<div class="spacer"></div>
					        <table cellspacing="0" cellpadding="0" border="0" width="100%">
								<tr>
									<td>
										<table cellspacing="0" cellpadding="0" border="0" width="100%">
											<tr>
												<td>
													<table cellpadding="0" cellspacing="0" border="0">
<!-- #Region ButtonPaginationBar -->
<!-- #EndRegion ButtonPaginationBar -->
<!-- #Region DataViewArea -->
														<tr>
															<td>
																<asp:panel id="CustomersRecordControlPanel" Runat="Server">
																	<table cellpadding="0" cellspacing="3" border="0">
																		<tr >
																			<td class="fls" ><asp:Literal runat="server" id="CustomerIDLabel" Text="Customer ID">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="CustomerID" Columns="5" MaxLength="5" cssclass="field_input">
									</asp:TextBox>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="CustomerIDTextBoxMaxLengthValidator" ControlToValidate="CustomerID" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Customer ID&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																			<td class="fls" ><asp:Literal runat="server" id="CompanyNameLabel" Text="Company Name">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="CompanyName" Columns="40" MaxLength="40" cssclass="field_input">
									</asp:TextBox>&nbsp;
									<asp:RequiredFieldValidator runat="server" id="CompanyNameRequiredFieldValidator" ControlToValidate="CompanyName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueIsRequired&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Company Name&quot;) %>" enabled="True" text="*">									</asp:RequiredFieldValidator>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="CompanyNameTextBoxMaxLengthValidator" ControlToValidate="CompanyName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Company Name&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																		</tr>
																		<tr >
																			<td class="fls" ><asp:Literal runat="server" id="ContactNameLabel" Text="Contact Name">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="ContactName" Columns="30" MaxLength="30" cssclass="field_input">
									</asp:TextBox>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ContactNameTextBoxMaxLengthValidator" ControlToValidate="ContactName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Contact Name&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																			<td class="fls" ><asp:Literal runat="server" id="ContactTitleLabel" Text="Contact Title">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="ContactTitle" Columns="30" MaxLength="30" cssclass="field_input">
									</asp:TextBox>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ContactTitleTextBoxMaxLengthValidator" ControlToValidate="ContactTitle" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Contact Title&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																		</tr>
																		<tr >
																			<td class="fls" ><asp:Literal runat="server" id="EmailAddressLabel" Text="Email Address">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="EmailAddress" MaxLength="50" columns="60" cssclass="field_input" rows="5" textmode="MultiLine">
									</asp:TextBox>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="EmailAddressTextBoxMaxLengthValidator" ControlToValidate="EmailAddress" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Email Address&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																			<td class="fls" ><asp:Literal runat="server" id="AddressLabel" Text="Address">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="Address" Columns="50" MaxLength="50" cssclass="field_input">
									</asp:TextBox>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="AddressTextBoxMaxLengthValidator" ControlToValidate="Address" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Address&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																		</tr>
																		<tr >
																			<td class="fls" ><asp:Literal runat="server" id="CityLabel" Text="City">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="City" Columns="15" MaxLength="15" cssclass="field_input">
									</asp:TextBox>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="CityTextBoxMaxLengthValidator" ControlToValidate="City" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;City&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																			<td class="fls" ><asp:Literal runat="server" id="RegionLabel" Text="Region">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="Region" Columns="15" MaxLength="15" cssclass="field_input">
									</asp:TextBox>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RegionTextBoxMaxLengthValidator" ControlToValidate="Region" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Region&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																		</tr>
																		<tr >
																			<td class="fls" ><asp:Literal runat="server" id="PostalCodeLabel" Text="Postal Code">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="PostalCode" Columns="10" MaxLength="10" cssclass="field_input">
									</asp:TextBox>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="PostalCodeTextBoxMaxLengthValidator" ControlToValidate="PostalCode" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Postal Code&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																			<td class="fls" ><asp:Literal runat="server" id="CountryLabel" Text="Country">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="Country" Columns="15" MaxLength="15" cssclass="field_input">
									</asp:TextBox>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="CountryTextBoxMaxLengthValidator" ControlToValidate="Country" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Country&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																		</tr>
																		<tr >
																			<td class="fls" ><asp:Literal runat="server" id="PhoneLabel" Text="Phone">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="Phone" Columns="24" MaxLength="24" cssclass="field_input">
									</asp:TextBox>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="PhoneTextBoxMaxLengthValidator" ControlToValidate="Phone" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Phone&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																			<td class="fls" ><asp:Literal runat="server" id="FaxLabel" Text="Fax">
									</asp:Literal></td>
																			<td class="dfv" style="white-space:nowrap;" ><asp:TextBox runat="server" id="Fax" Columns="24" MaxLength="24" cssclass="field_input">
									</asp:TextBox>&nbsp;
									<BaseClasses:TextBoxMaxLengthValidator runat="server" id="FaxTextBoxMaxLengthValidator" ControlToValidate="Fax" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Fax&quot;) %>">									</BaseClasses:TextBoxMaxLengthValidator></td>
																		</tr>
																	</table>
																</asp:panel>
															</td>
														</tr>	
<!-- #EndRegion DataViewArea -->
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				</asp:panel>
			</td>
		</tr>
	</table>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("SaveButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("SaveAndNewButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("OKButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("EditButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("CancelButton$_Button")) %>
 

						</UseDAL:CustomersRecordControl><asp:TabContainer runat="server" id="CustomersTabContainer">
								
    <asp:TabPanel runat="server" id="OrdersTabPanel" HeaderText="Orders">
													<ContentTemplate>
    
<UseDAL:OrdersTableControl runat="server" id="OrdersTableControl">
																	

    <table class="dv" cellpadding="0" cellspacing="0" border="0">
<!-- #Region PanelHeader -->
<!-- #EndRegion PanelHeader -->
		<tr>
			<td>
				<asp:panel id="OrdersTableControlCollapsibleRegion" runat="server">
				<table class="dBody" cellpadding="0" cellspacing="0" border="0" width="100%">
					<tr>
						<td>
<!-- #Region SearchFilter -->
<!-- #EndRegion SearchFilter -->
							<div class="spacer"></div>
					        <table cellspacing="0" cellpadding="0" border="0" width="100%">
								<tr>
									<td>
										<table cellspacing="0" cellpadding="0" border="0" width="100%">
											<tr>
												<td>
													<table cellpadding="0" cellspacing="0" border="0">
<!-- #Region ButtonPaginationBar -->
														<tr>
															<td class="pr" colspan="100">
																<table cellspacing="0" cellpadding="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="OrdersAddButton" 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;UseDAL&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Add&quot;, &quot;UseDAL&quot;) %>">

																		</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="OrdersEditButton" 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;UseDAL&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Edit&quot;, &quot;UseDAL&quot;) %>">

																		</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="OrdersDeleteButton" 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;UseDAL&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Delete&quot;, &quot;UseDAL&quot;) %>">

																		</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="OrdersRefreshButton" 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;UseDAL&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Refresh&quot;, &quot;UseDAL&quot;) %>">

																		</asp:ImageButton></td>
																		<td class="prbbc" ><asp:ImageButton runat="server" id="OrdersResetButton" 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;UseDAL&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Reset&quot;, &quot;UseDAL&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" ><UseDAL:Pagination runat="server" id="OrdersPagination">
																		</UseDAL:Pagination></td>
																		<td ><img src="../Images/paginationRowEdgeR.gif" alt=""/></td></tr>
																</table>
															</td>
														</tr>
<!-- #EndRegion ButtonPaginationBar -->
<!-- #Region DataViewArea -->
														<tr>
															<td class="tre">
																<table cellspacing="0" cellpadding="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="OrdersToggleAll" onclick="toggleAllCheckboxes(this);">

																		</asp:CheckBox></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="EmployeeIDLabel1" Text="Employee" CausesValidation="False">
																		</asp:LinkButton></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="OrderDateLabel" Text="Order Date" CausesValidation="False">
																		</asp:LinkButton></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="RequiredDateLabel" Text="Required Date" CausesValidation="False">
																		</asp:LinkButton></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="ShippedDateLabel" Text="Shipped Date" CausesValidation="False">
																		</asp:LinkButton></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="ShipViaLabel1" Text="Ship Via" CausesValidation="False">
																		</asp:LinkButton></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="FreightLabel" Text="Freight" CausesValidation="False">
																		</asp:LinkButton></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="ShipNameLabel" Text="Ship Name" CausesValidation="False">
																		</asp:LinkButton></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="ShipAddressLabel" Text="Ship Address" CausesValidation="False">
																		</asp:LinkButton></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="ShipCityLabel" Text="Ship City" CausesValidation="False">
																		</asp:LinkButton></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="ShipRegionLabel" Text="Ship Region" CausesValidation="False">
																		</asp:LinkButton></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="ShipPostalCodeLabel" Text="Ship Postal Code" CausesValidation="False">
																		</asp:LinkButton></th>
																			<th class="thc" scope="col" ><asp:LinkButton runat="server" id="ShipCountryLabel" Text="Ship Country" CausesValidation="False">
																		</asp:LinkButton></th>
																		</tr>
																	
																	<asp:Repeater runat="server" id="OrdersTableControlRepeater">
																			<ITEMTEMPLATE>
																					<UseDAL:OrdersTableControlRow runat="server" id="OrdersTableControlRow">
																							
																		<tr >
																			<td class="ticnb" scope="row" ><asp:ImageButton runat="server" id="OrdersRowViewButton" causesvalidation="False" commandname="Redirect" cssclass="button_link" imageurl="../Images/icon_view.gif" tooltip="&lt;%# GetResourceValue(&quot;Txt:ViewRecord&quot;, &quot;UseDAL&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Txt:ViewRecord&quot;, &quot;UseDAL&quot;) %>">

																							</asp:ImageButton></td>
																			<td class="ticnb" scope="row" ><asp:ImageButton runat="server" id="OrdersRowEditButton" causesvalidation="False" commandname="Redirect" cssclass="button_link" imageurl="../Images/icon_edit.gif" tooltip="&lt;%# GetResourceValue(&quot;Txt:EditRecord&quot;, &quot;UseDAL&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Txt:EditRecord&quot;, &quot;UseDAL&quot;) %>">

																							</asp:ImageButton></td>
																			<td class="ticnb" scope="row" ><asp:ImageButton runat="server" id="OrdersRowDeleteButton" causesvalidation="False" commandargument="DeleteOnUpdate" commandname="DeleteRecord" cssclass="button_link" imageurl="../Images/icon_delete.gif" tooltip="&lt;%# GetResourceValue(&quot;Txt:DeleteRecord&quot;, &quot;UseDAL&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Txt:DeleteRecord&quot;, &quot;UseDAL&quot;) %>">

																							</asp:ImageButton></td>
																			<td class="ticwb" ><asp:CheckBox runat="server" id="OrdersRecordRowSelection" onclick="moveToThisTableRow(this);">

																							</asp:CheckBox></td>
																			<td class="ttc" style="white-space:nowrap;" ><asp:DropDownList runat="server" id="EmployeeID" cssclass="field_input" onkeypress="dropDownListTypeAhead(this,false)">
																							</asp:DropDownList>
																							<Selectors:FvLlsHyperLink runat="server" id="EmployeeIDFvLlsHyperLink" ControlToUpdate="EmployeeID" Text="&lt;%# GetResourceValue(&quot;LLS:Text&quot;, &quot;UseDAL&quot;) %>" MinListItems="100" Table="Employees" Field="Employees_.EmployeeID" DisplayField="Employees_.LastName">																							</Selectors:FvLlsHyperLink>&nbsp;
																							<asp:RequiredFieldValidator runat="server" id="EmployeeIDRequiredFieldValidator" ControlToValidate="EmployeeID" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueIsRequired&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Employee&quot;) %>" enabled="True" initialvalue="--PLEASE_SELECT--" text="*">																							</asp:RequiredFieldValidator>
																				<asp:ImageButton runat="server" id="EmployeeIDAddRecordLink" causesvalidation="False" commandname="Redirect" imageurl="../Images/iconNewFlat.gif" tooltip="&lt;%# GetResourceValue(&quot;Btn:Add&quot;, &quot;UseDAL&quot;) %>" alternatetext="&lt;%# GetResourceValue(&quot;Btn:Add&quot;, &quot;UseDAL&quot;) %>">

																							</asp:ImageButton></td>
																			<td class="ttc" 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="OrderDate" Columns="20" MaxLength="20" onkeyup="DateFormat(this, this.value, event.keyCode, 'mm/dd/yyyy')" cssclass="field_input">
																							</asp:TextBox></td>
																							<td style="padding-right: 5px; white-space:nowrap;">
																							<%# SystemUtils.GenerateIncrementDecrementButtons(true, Container.FindControl("OrderDate"),"DateTextBox","mm/dd/yyyy","","") %>
																							</td>
																							<td style="padding-right: 5px">
																							<Selectors:CalendarExtendarClass runat="server" ID="OrderDateCalendarExtender" TargetControlID="OrderDate" CssClass="MyCalendar" Format="d">
																							</Selectors:CalendarExtendarClass>&nbsp;
																							<BaseClasses:TextBoxMaxLengthValidator runat="server" id="OrderDateTextBoxMaxLengthValidator" ControlToValidate="OrderDate" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Order Date&quot;) %>">																							</BaseClasses:TextBoxMaxLengthValidator></td>
																							</tr>
																							</table>
																							</td>
																			<td class="ttc" 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="RequiredDate" Columns="20" MaxLength="20" onkeyup="DateFormat(this, this.value, event.keyCode, 'mm/dd/yyyy')" cssclass="field_input">
																							</asp:TextBox></td>
																							<td style="padding-right: 5px; white-space:nowrap;">
																							<%# SystemUtils.GenerateIncrementDecrementButtons(true, Container.FindControl("RequiredDate"),"DateTextBox","mm/dd/yyyy","","") %>
																							</td>
																							<td style="padding-right: 5px">
																							<Selectors:CalendarExtendarClass runat="server" ID="RequiredDateCalendarExtender" TargetControlID="RequiredDate" CssClass="MyCalendar" Format="d">
																							</Selectors:CalendarExtendarClass>&nbsp;
																							<BaseClasses:TextBoxMaxLengthValidator runat="server" id="RequiredDateTextBoxMaxLengthValidator" ControlToValidate="RequiredDate" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Required Date&quot;) %>">																							</BaseClasses:TextBoxMaxLengthValidator></td>
																							</tr>
																							</table>
																							</td>
																			<td class="ttc" 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="ShippedDate" Columns="20" MaxLength="20" onkeyup="DateFormat(this, this.value, event.keyCode, 'mm/dd/yyyy')" cssclass="field_input">
																							</asp:TextBox></td>
																							<td style="padding-right: 5px; white-space:nowrap;">
																							<%# SystemUtils.GenerateIncrementDecrementButtons(true, Container.FindControl("ShippedDate"),"DateTextBox","mm/dd/yyyy","","") %>
																							</td>
																							<td style="padding-right: 5px">
																							<Selectors:CalendarExtendarClass runat="server" ID="ShippedDateCalendarExtender" TargetControlID="ShippedDate" CssClass="MyCalendar" Format="d">
																							</Selectors:CalendarExtendarClass>&nbsp;
																							<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ShippedDateTextBoxMaxLengthValidator" ControlToValidate="ShippedDate" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Shipped Date&quot;) %>">																							</BaseClasses:TextBoxMaxLengthValidator></td>
																							</tr>
																							</table>
																							</td>
																			<td class="ttc" style="white-space:nowrap;" ><asp:DropDownList runat="server" id="ShipVia" cssclass="field_input" onkeypress="dropDownListTypeAhead(this,false)">
																							</asp:DropDownList>
																							<Selectors:FvLlsHyperLink runat="server" id="ShipViaFvLlsHyperLink" ControlToUpdate="ShipVia" Text="&lt;%# GetResourceValue(&quot;LLS:Text&quot;, &quot;UseDAL&quot;) %>" MinListItems="100" Table="Shippers" Field="Shippers_.ShipperID" DisplayField="Shippers_.CompanyName">																							</Selectors:FvLlsHyperLink>&nbsp;
																							<asp:RequiredFieldValidator runat="server" id="ShipViaRequiredFieldValidator" ControlToValidate="ShipVia" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueIsRequired&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Ship Via&quot;) %>" enabled="True" initialvalue="--PLEASE_SELECT--" text="*">																							</asp:RequiredFieldValidator></td>
																			<td class="ttc" 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="Freight" Columns="20" MaxLength="20" onkeyup="adjustCurrency(this, event.keyCode,'$', '.', 'False');" cssclass="field_input">
																							</asp:TextBox></td>
																							<td style="padding-right: 5px; white-space:nowrap;">
																							<%# SystemUtils.GenerateIncrementDecrementButtons(true, Container.FindControl("Freight"),"CurrencyTextBox","$",".","False") %>
																							</td>
																							<td style="padding-right: 5px">
																							&nbsp;
																							<BaseClasses:TextBoxMaxLengthValidator runat="server" id="FreightTextBoxMaxLengthValidator" ControlToValidate="Freight" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Freight&quot;) %>">																							</BaseClasses:TextBoxMaxLengthValidator></td>
																							</tr>
																							</table>
																							</td>
																			<td class="ttc" style="white-space:nowrap;" ><asp:TextBox runat="server" id="ShipName" Columns="40" MaxLength="40" cssclass="field_input">
																							</asp:TextBox>&nbsp;
																							<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ShipNameTextBoxMaxLengthValidator" ControlToValidate="ShipName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Ship Name&quot;) %>">																							</BaseClasses:TextBoxMaxLengthValidator></td>
																			<td class="ttc" style="white-space:nowrap;" ><asp:TextBox runat="server" id="ShipAddress" Columns="50" MaxLength="50" cssclass="field_input">
																							</asp:TextBox>&nbsp;
																							<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ShipAddressTextBoxMaxLengthValidator" ControlToValidate="ShipAddress" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Ship Address&quot;) %>">																							</BaseClasses:TextBoxMaxLengthValidator></td>
																			<td class="ttc" style="white-space:nowrap;" ><asp:TextBox runat="server" id="ShipCity" Columns="15" MaxLength="15" cssclass="field_input">
																							</asp:TextBox>&nbsp;
																							<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ShipCityTextBoxMaxLengthValidator" ControlToValidate="ShipCity" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Ship City&quot;) %>">																							</BaseClasses:TextBoxMaxLengthValidator></td>
																			<td class="ttc" style="white-space:nowrap;" ><asp:TextBox runat="server" id="ShipRegion" Columns="15" MaxLength="15" cssclass="field_input">
																							</asp:TextBox>&nbsp;
																							<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ShipRegionTextBoxMaxLengthValidator" ControlToValidate="ShipRegion" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Ship Region&quot;) %>">																							</BaseClasses:TextBoxMaxLengthValidator></td>
																			<td class="ttc" style="white-space:nowrap;" ><asp:TextBox runat="server" id="ShipPostalCode" Columns="10" MaxLength="10" cssclass="field_input">
																							</asp:TextBox>&nbsp;
																							<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ShipPostalCodeTextBoxMaxLengthValidator" ControlToValidate="ShipPostalCode" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Ship Postal Code&quot;) %>">																							</BaseClasses:TextBoxMaxLengthValidator></td>
																			<td class="ttc" style="white-space:nowrap;" ><asp:TextBox runat="server" id="ShipCountry" Columns="15" MaxLength="15" cssclass="field_input">
																							</asp:TextBox>&nbsp;
																							<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ShipCountryTextBoxMaxLengthValidator" ControlToValidate="ShipCountry" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;UseDAL&quot;).Replace(&quot;{FieldName}&quot;, &quot;Ship Country&quot;) %>">																							</BaseClasses:TextBoxMaxLengthValidator></td>
																		</tr>
																	
																					</UseDAL:OrdersTableControlRow>
																			</ITEMTEMPLATE>
																	</asp:Repeater>
																</table>
															</td>
														</tr>
<!-- #EndRegion DataViewArea -->
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				</asp:panel>
			</td>
		</tr>
	</table>

														</UseDAL:OrdersTableControl>
													
    
														</ContentTemplate></asp:TabPanel>

										</asp:TabContainer></ContentTemplate>
								</asp:UpdatePanel>
								

<!-- #Region PageButtons -->
                                    
                                    <table cellpadding="0" cellspacing="0" border="0" id="Table1">
                                        <tr>
                                        <td class="recordPanelButtonsAlignment">
                                        <table cellpadding="0" cellspacing="0" border="0">
										<tr >
																		<td ><UseDAL:ThemeButton runat="server" id="SaveButton" button-causesvalidation="true" button-commandname="UpdateData" button-redirecturl="Back" button-text="&lt;%# GetResourceValue(&quot;Btn:Save&quot;, &quot;UseDAL&quot;) %>" postback="True">
									</UseDAL:ThemeButton></td>
																		<td ></td>
																		<td ></td>
																		<td ></td>
																		<td ><UseDAL:ThemeButton runat="server" id="CancelButton" button-causesvalidation="false" button-commandname="Redirect" button-redirecturl="Back" button-text="&lt;%# GetResourceValue(&quot;Btn:Cancel&quot;, &quot;UseDAL&quot;) %>">
									</UseDAL:ThemeButton></td>
										</tr></table>
                                        </td>
                                        </tr>
                                    </table>
                                    
<!-- #EndRegion PageButtons --> <div id="detailPopup" class="detailRolloverPopup" onmouseout="detailRolloverPopupClose();" onmouseover="clearTimeout(gPopupTimer);"></div>
                        </td>
                        </tr>
                        </table>
                    </td>
                </tr>
                </table>
                </td>
                <td class="pcR"></td>
            </tr>
            <tr>
                <td class="pcBL"></td>
                <td class="pcB">
<!-- #Region PageFooter --> 
				
                <UseDAL:Footer runat="server" id="PageFooter">
								</UseDAL:Footer>
<!-- #EndRegion PageFooter --> 
				</td>
                <td class="pcBR"></td>
            </tr>
            </table>
            </td>
            <td class="pbR"><img src="../Images/space.gif" alt=""/></td>
            </tr>
            <tr>
            <td class="pbBL"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbB"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbBR"><img src="../Images/space.gif" alt=""/></td>
        </tr>
        </table>
        </td>
        </tr>
        </table>
        <asp:ValidationSummary id="ValidationSummary1" ShowMessageBox="true" ShowSummary="false" runat="server"></asp:ValidationSummary></form>
    </body>
</html>
