|
<dxpc:ASPxPopupControl ID="mdlFileDupCheck" runat="server" PopupHorizontalAlign="WindowCenter"
CloseAction="CloseButton" PopupVerticalAlign="WindowCenter" AllowDragging="True"
EnableAnimation="False" AutoUpdatePosition="true" EnableViewState="true" ShowHeader="false"
ClientInstanceName="mdlFileDupCheck" Modal="true" ShowPageScrollbarWhenModal="true" BackColor="#F3F3F3">
<ContentCollection>
<dxpc:PopupControlContentControl ID="PopupControlContentControl1" runat="server">
<dxp:ASPxPanel ID="Panel1" runat="server" CssClass="box nomargin">
<PanelCollection>
<dxp:PanelContent ID="PanelContent1" runat="server">
<asp:Panel runat="server" ID="pnlFileDupCheck" DefaultButton="btnFileDupCheck" Style="width: 825px;
display: ">
<asp:Button ID="btnFileDupCheck" runat="server" Style="display: none;" />
<dx:ASPxPageControl ID="pageControl" runat="server" ActiveTabIndex="0" Width="100%"
TabSpacing="9px" CssPostfix="myTheme" OnActiveTabChanged="pageControl1_ActiveTabChanged"
AutoPostBack="true">
<ClientSideEvents TabClick="function(s, e) {
var index=s.GetActiveTabIndex();
if(index==e.tab.index)
{
e.Cancel = true;
}
else
{
LoadingPanel.Show();
}
}" />
<TabPages>
<dx:TabPage Text="File Information" TabStyle-Width="135px">
<ContentCollection>
<dx:ContentControl ID="ContentControl4" runat="server">
<div class="withborder">
<div class="box nomargin">
<table cellpadding="0" cellspacing="0" style="width: 100%" border="0">
<tr>
<td class="cFormHeader">
<h3>
Enter File Information</h3>
</td>
<td class="required" align="right">
* Required
</td>
</tr>
</table>
<div class="hr">
</div>
<div class="cMessageArea">
<asp:Label ID="lblMdlErrorMsg" runat="server" CssClass="cError"></asp:Label>
</div>
<table class="cChildTable" width="100%">
<tr>
<td style="width: 10%">
<div class="required">
*<asp:Label ID="lblFile" runat="server" Text="File #:" CssClass="cLabel"></asp:Label>
</div>
</td>
<td style="width: 50%">
<asp:TextBox ID="txtFileNumber" runat="server" CssClass="cText" Width="150px" MaxLength="40"
TabIndex="1"></asp:TextBox>
</td>
<%----%>
</tr>
<tr>
<td style="width: 10%">
<div class="required">
*<asp:Label ID="lblOffice" runat="server" Text="Office:" Width="" CssClass="cLabel"></asp:Label></div>
</td>
<td style="width: 50%">
<asp:DropDownList ID="ddlOffice" runat="server" CssClass="cSelect" AutoPostBack="true"
TabIndex="6" OnSelectedIndexChanged="ddlOffice_SelectedIndexChanged" Width="380px"
onchange="LoadingPanel.Show();">
</asp:DropDownList>
</td>
<td style="width: 15%">
<div class="required">
*<asp:Label ID="lblUnderwriter" runat="server" Text="Underwriter:" Width=""
CssClass="cLabel"></asp:Label></div>
</td>
<td>
<asp:DropDownList ID="ddlUnderwriters" runat="server" CssClass="cSelect" OnSelectedIndexChanged="ddlUnderwriters_SelectedIndexChanged"
AutoPostBack="true" TabIndex="9" Width="150px" onchange="LoadingPanel.Show();">
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 10%">
<div class="required">
*<asp:Label ID="lblState" runat="server" Text="State:" Width="" CssClass="cLabel"></asp:Label></div>
</td>
<td style="width: 50%">
<asp:DropDownList ID="ddlJurisdictionStates" runat="server" CssClass="cSelect" TabIndex="7"
OnSelectedIndexChanged="ddlJurisdictionStates_SelectedIndexChanged" AutoPostBack="true"
onchange="LoadingPanel.Show();">
</asp:DropDownList>
</td>
<td style="width: 15%">
<div class="required">
*<asp:Label ID="lblAccount" runat="server" Text="Account #:" Width=""
CssClass="cLabel"></asp:Label></div>
</td>
<td>
<asp:DropDownList ID="ddlAccount" runat="server" CssClass="cSelect" TabIndex="10">
</asp:DropDownList>
</td>
</tr>
</table>
<div id="divDuplicateFiles" runat="server" visible="false">
<div class="Space">
</div>
<div class="cFormHeader">
<h3>
File # Validation</h3>
</div>
<div class="hr">
</div>
<div class="Space">
</div>
<div class="cMessageArea">
<asp:Label ID="lblDuplicateFileMsg" runat="server" CssClass="cError" Text="">
</asp:Label>
</div>
<div class="Space">
</div>
<div>
<dx:ASPxGridView ID="dgDuplicateFile" runat="server" AutoGenerateColumns="False"
EnableCallBacks="False" Visible="True" Width="100%" KeyFieldName="FileId" OnHtmlRowCreated="dgDuplicateFile_HtmlRowCreated"
OnBeforeColumnSortingGrouping="dgDuplicateFile_BeforeColumnSortingGrouping" OnPageIndexChanged="dgDuplicateFile_OnPageIndexChanged"
OnRowCommand="dgDuplicateFile_RowCommand">
<Columns>
<dx:GridViewDataTextColumn FieldName="FileId" Visible="False" VisibleIndex="0">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="File #" FieldName="FileNumber" VisibleIndex="1">
<HeaderCaptionTemplate>
<div class="cGridHeaderLink" onmouseout="RemoveMouseOverClass(this)" onmouseover="addMouseOverClass(this)">
File #</div>
</HeaderCaptionTemplate>
</dx:GridViewDataTextColumn>
<dx:GridViewDataColumn Name="Office" Caption="Office" VisibleIndex="2" FieldName="Office"
CellStyle-HorizontalAlign="Left">
<HeaderCaptionTemplate>
<div class="cGridHeaderLink" onmouseover="addMouseOverClass(this)" onmouseout="RemoveMouseOverClass(this)">
Office</div>
</HeaderCaptionTemplate>
<DataItemTemplate>
<div>
<asp:Label ID="lblOfficeName" runat="server">
</asp:Label></div>
</DataItemTemplate>
</dx:GridViewDataColumn>
<dx:GridViewDataDateColumn Caption="Open Date" FieldName="OpenDate" VisibleIndex="3"
Settings-SortMode="Value" SortOrder="Descending" SortIndex="1">
<PropertiesDateEdit DisplayFormatString="MM/dd/yyyy" EditFormat="Custom" EditFormatString="MM/dd/yyyy"
UseMaskBehavior="true">
</PropertiesDateEdit>
<HeaderCaptionTemplate>
<div class="cGridHeaderLink" onmouseout="RemoveMouseOverClass(this)" onmouseover="addMouseOverClass(this)">
Open Date</div>
</HeaderCaptionTemplate>
</dx:GridViewDataDateColumn>
<dx:GridViewDataTextColumn Caption="Address" FieldName="FullAddress" VisibleIndex="4">
<HeaderCaptionTemplate>
<div class="cGridHeaderLink" onmouseout="RemoveMouseOverClass(this)" onmouseover="addMouseOverClass(this)">
Address</div>
</HeaderCaptionTemplate>
</dx:GridViewDataTextColumn>
<dx:GridViewDataColumn Name="ProductDesc" Caption="Buyer/Seller" VisibleIndex="5"
FieldName="Buyer" CellStyle-HorizontalAlign="Left">
<HeaderCaptionTemplate>
<div class="cGridHeaderLink" onmouseover="addMouseOverClass(this)" onmouseout="RemoveMouseOverClass(this)">
Buyer/Seller</div>
</HeaderCaptionTemplate>
<DataItemTemplate>
<div>
<asp:Label ID="lblBuyerSeller" runat="server">
</asp:Label></div>
</DataItemTemplate>
</dx:GridViewDataColumn>
<dx:GridViewDataColumn VisibleIndex="6" Caption="Action">
<HeaderCaptionTemplate>
<div class="cGridHeaderStyle">
Action</div>
</HeaderCaptionTemplate>
<DataItemTemplate>
<div class="cLinkButton">
<asp:LinkButton ID="lblFileOpen" runat="server" Text="Open" CommandArgument="Open"
CommandName="Open" />
</div>
</DataItemTemplate>
<Settings AllowSort="False" />
</dx:GridViewDataColumn>
<dx:GridViewDataTextColumn FieldName="FirmLocationId" Visible="False" VisibleIndex="7">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName="FileExists" Visible="False" VisibleIndex="8"
SortOrder="Descending" SortIndex="0">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName="FirmLocationJurisdictionID" Visible="False"
VisibleIndex="9">
</dx:GridViewDataTextColumn>
</Columns>
<Styles Header-CssClass="dxgvHeader" HeaderPanel-Cursor="hand">
<RowHotTrack BackColor="#DAE0E6">
</RowHotTrack>
<Header CssClass="dxgvHeader">
</Header>
<Cell>
<BorderRight BorderStyle="None" />
</Cell>
<HeaderPanel Cursor="hand">
</HeaderPanel>
</Styles>
<SettingsPager AllButton-Visible="true" FirstPageButton-Visible="true" LastPageButton-Visible="true"
PageSize="10" Position="Top" ShowDefaultImages="true">
<AllButton Visible="True">
</AllButton>
<FirstPageButton Visible="True">
</FirstPageButton>
<LastPageButton Visible="True">
</LastPageButton>
</SettingsPager>
<SettingsDetail IsDetailGrid="True" />
<SettingsBehavior AllowSort="true" EnableRowHotTrack="true" ProcessSelectionChangedOnServer="True"
SortMode="Custom" />
<Styles Cell-BorderRight-BorderStyle="None">
<RowHotTrack BackColor="#dae0e6">
</RowHotTrack>
</Styles>
<SettingsLoadingPanel Text="Loading,Please wait..." />
</dx:ASPxGridView>
</div>
</div>
</div>
<div class="buttons">
<span id="span3" class="cBtnLeft"><span class="cBtnRight">
<asp:Button ID="btnDupCheck" runat="server" OnClientClick="LoadingPanel.Show();"
OnClick="btnDupCheck_Click" Text="Next" CssClass="cBtnRight" Width="60px" TabIndex="11" />
</span></span><span id="span4" class="cBtnLeft"><span
class="cBtnRight">
<asp:Button ID="btnCncl" runat="server" Text="Cancel" OnClick="btnCncl_OnClick" OnClientClick="LoadingPanel.Show();"
CssClass="cBtnRight" Width="60px" TabIndex="12" />
</span></span>
<input type="hidden" id="hidtxtFileNumber" runat="server" />
<input type="hidden" id="hidtxtOfficeId" runat="server" />
<input type="hidden" id="hidtxtStateId" runat="server" />
<input type="hidden" id="hidtxtPropertyType" runat="server" />
</div>
</div>
</dx:ContentControl>
</ContentCollection>
</dx:TabPage>
<dx:TabPage Text="Property Information" TabStyle-Width="140px">
<ContentCollection>
<dx:ContentControl ID="ContentControl5" runat="server">
<table border="0" width="100%">
<tr>
<td style="height: 90%">
<uc1:findAddress ID="ctlFindAddress" runat="server"></uc1:findAddress>
</td>
</tr>
</table>
</dx:ContentControl>
</ContentCollection>
</dx:TabPage>
</TabPages>
</dx:ASPxPageControl>
</asp:Panel>
</dxp:PanelContent>
</PanelCollection>
</dxp:ASPxPanel>
</dxpc:PopupControlContentControl>
</ContentCollection>
</dxpc:ASPxPopupControl>
|
|
|
|
|
You have to wrap your control in a panel, and set the panels default button to the button you want to press enter on. Use the buttons ID value, and not the name you gave it.
Dim panel_Container as Panel
With panel_Container
.ID = "_panel_Container"
.DefaultButton = "bt_Submit"
|
|
|
|