• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 882
  • Last Modified:

TabIndex not working in FormView

Why is my TabIndex not working in the FormView? Do I need to get rid of the FormView?  Thanks!
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="StaffSite.Master" CodeBehind="Order_StaffManual.aspx.vb" Inherits="ProVal.Order" %>

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

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

   
    <style type="text/css">
        .style2
        {
            height: 53px;
        }
        .style3
        {
            height: 31px;
        }
        #ClientEmail1
        {
            height: 22px;
            width: 154px;
        }
        .style4
        {
            height: 29px;
        }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server" >

     <asp:Panel ID="pnlBulkOption" runat="server">
<asp:Button ID="ButtonUpload" runat="server" Text="Upload Excel Spreadsheet" CausesValidation="False" />
         <asp:Label ID="lblSuccessfullyImport" runat="server" Font-Bold="True" 
             Font-Size="Medium" Text="Order successfully imported"></asp:Label>
    </asp:Panel>
    
    <asp:Panel ID="pnlManualOrder" runat="server" Visible="true">
    
        <asp:FormView ID="frmManualOrder" runat="server" DefaultMode="Insert">


            <EditItemTemplate>
                <table cellpadding="1" cellspacing="1" style="width:100%;">
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Property Information</td>
                    </tr>
                    <tr>
                        <td>
                            Loan #
                        </td>
                        <td>
                            <asp:TextBox ID="txtLoanNumber" runat="server" Height="20px" Width="164px"></asp:TextBox>
                        </td>
                        <td>
                            Client Ref #</td>
                        <td>
                            <asp:TextBox ID="txtClientRefNum" runat="server" Height="23px" TabIndex="1" 
                                Width="147px"></asp:TextBox>
                        </td>
                        <td>
                            Case #</td>
                        <td>
                            <asp:TextBox ID="txtCaseNumber" runat="server" Height="25px" TabIndex="3" 
                                Width="152px"></asp:TextBox>
                        </td>
                        <td>
                            Legal Desc</td>
                        <td>
                            <asp:TextBox ID="txtLegalDesc" runat="server" Height="22px" TabIndex="4" 
                                Width="152px"></asp:TextBox>
                        </td>
                        <td>
                            Property Type</td>
                        <td>
                            <asp:DropDownList ID="txtPropertyType" runat="server" 
                                DataSourceID="PropertyType" DataTextField="PropertyTypeName" 
                                DataValueField="PropertyTypeKey" Height="23px" TabIndex="5" Width="145px">
                                <asp:ListItem>(Select a Property Type)</asp:ListItem>
                            </asp:DropDownList>
                            </td>
                    </tr>
                    <tr>
                        <td>
                            Location Type
                        </td>
                        <td>
                            <asp:DropDownList ID="txtLocType" runat="server" AppendDataBoundItems="true" 
                                DataSourceID="LocationType" DataTextField="LocationTypeName" 
                                DataValueField="LocationTypeKey" TabIndex="6" Width="171px">
                                <asp:ListItem> (Select a Location)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Address *</td>
                        <td>
                            <asp:TextBox ID="txtAddress" runat="server" TabIndex="7" Width="147px"></asp:TextBox>
                        </td>
                        <td>
                            Address 2</td>
                        <td>
                            <asp:TextBox ID="txtAddress2" runat="server" AutoPostBack="True" TabIndex="8" 
                                Width="154px"></asp:TextBox>
                        </td>
                        <td>
                            City *</td>
                        <td>
                            <asp:TextBox ID="txtCity" runat="server" Height="21px" TabIndex="9" 
                                Width="155px"></asp:TextBox>
                        </td>
                        <td>
                            State *</td>
                        <td>
                            <asp:DropDownList ID="StateID" runat="server" AppendDataBoundItems="True" 
                                DataSourceID="State" DataTextField="StateAbbr" DataValueField="StateKey" 
                                Height="22px" TabIndex="10" Width="144px">
                                <asp:ListItem> (Select a State)</asp:ListItem>
                            </asp:DropDownList>
                            <asp:CompareValidator ID="vldState" runat="server" ErrorMessage="Property state required" ControlToValidate="StateID" Operator="NotEqual"></asp:CompareValidator> </td>
                    </tr>
                    <tr>
                        <td>
                            County</td>
                        <td>
                            <asp:TextBox ID="txtCounty" runat="server" AutoPostBack="True" Height="22px" 
                                TabIndex="11" Width="160px"></asp:TextBox>
                        </td>
                        <td>
                            Zip
                        </td>
                        <td>
                            <asp:TextBox ID="txtZip" runat="server" Height="22px" TabIndex="12" 
                                Width="145px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Order Information</td>
                    </tr>
                    <tr>
                        <td>
                            Product</td>
                        <td>
                            <asp:DropDownList ID="ReportTypeID" runat="server" AppendDataBoundItems="true" 
                                DataSourceID="ReportType" DataTextField="ReportTypeName" 
                                DataValueField="ReportTypeKey" Height="23px" TabIndex="13" Width="172px">
                                <asp:ListItem> (Select a Report Type)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Rush Indicator</td>
                        <td>
                            <asp:DropDownList ID="DropDownList2" runat="server" Height="18px" Width="154px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            Client</td>
                        <td>
                            <asp:DropDownList ID="ClientID" runat="server" AppendDataBoundItems="true" 
                                AutoPostBack="True" DataSourceID="Client" DataTextField="ClientName" 
                                DataValueField="ClientKey" Height="22px" TabIndex="15" Width="172px">
                                <asp:ListItem> (Select a Client)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Ordered By</td>
                        <td>
                            <asp:DropDownList ID="DropDownList1" runat="server" Height="22px" Width="156px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            Ordered By Email</td>
                        <td>
                            <input id="ClientEmail0" tabindex="17" type="text" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Intended Use</td>
                        <td>
                            <asp:DropDownList ID="IntendedUseID" runat="server" AppendDataBoundItems="True" 
                                DataSourceID="IntendedUse" DataTextField="IntendedUseName" 
                                DataValueField="IntendedUseKey" Height="21px" TabIndex="18" Width="170px">
                                <asp:ListItem> (Select the Intended Use)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Occupancy</td>
                        <td>
                            <asp:DropDownList ID="OccupancyID" runat="server" AppendDataBoundItems="true" 
                                DataSourceID="Occupancy" DataTextField="OccupancyTypeName" 
                                DataValueField="OccupancyTypeKey" Height="22px" TabIndex="19" Width="161px">
                                <asp:ListItem> (Select Occupancy)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Client Due Date</td>
                        <td>
                            
                        </td>
                        <td>
                            Loan Type</td>
                        <td>
                            <asp:DropDownList ID="LoanTypeID" runat="server" DataSourceID="LoanType" 
                                DataTextField="LoanTypeName" DataValueField="LoanTypeKey" Height="23px" 
                                TabIndex="21" Width="163px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            Loan Amount</td>
                        <td>
                            <asp:TextBox ID="intLoanAmount" runat="server" AutoPostBack="True" 
                                Height="21px" TabIndex="22" Width="151px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Borrower Information</td>
                    </tr>
                    <tr>
                        <td>
                            Last Name</td>
                        <td>
                            <asp:TextBox ID="txtBorrLast" runat="server" TabIndex="23"></asp:TextBox>
                        </td>
                        <td>
                            First Name</td>
                        <td>
                            <asp:TextBox ID="txtBorrFirst" runat="server" TabIndex="24"></asp:TextBox>
                        </td>
                        <td>
                            Email</td>
                        <td>
                            <asp:TextBox ID="txtBorrEmail" runat="server" TabIndex="25"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Home Phone</td>
                        <td>
                            <asp:TextBox ID="txtBorrHome" runat="server" TabIndex="26"></asp:TextBox>
                        </td>
                        <td>
                            Work Phone</td>
                        <td>
                            <asp:TextBox ID="txtBorrWork" runat="server" TabIndex="27"></asp:TextBox>
                        </td>
                        <td>
                            Cell Phone</td>
                        <td>
                            <asp:TextBox ID="txtBorrCell" runat="server" TabIndex="28"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Contact Information</td>
                    </tr>
                    <tr>
                        <td>
                            Last Name</td>
                        <td>
                            <asp:TextBox ID="txtContLast" runat="server" TabIndex="29"></asp:TextBox>
                        </td>
                        <td>
                            First Name</td>
                        <td>
                            <asp:TextBox ID="txtContFIrst" runat="server" TabIndex="30"></asp:TextBox>
                        </td>
                        <td>
                            Email</td>
                        <td>
                            <asp:TextBox ID="txtContEmail" runat="server" TabIndex="31"></asp:TextBox>
                        </td>
                        <td>
                            Relation</td>
                        <td>
                            <asp:DropDownList ID="ContRelationID" runat="server" DataSourceID="Relation" 
                                DataTextField="RelationName" DataValueField="RelationKey" Height="16px" 
                                TabIndex="35" Width="124px">
                                <asp:ListItem>(Select a Relation)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Home Phone</td>
                        <td>
                            <asp:TextBox ID="txtContHome" runat="server" TabIndex="32"></asp:TextBox>
                        </td>
                        <td>
                            Work Phone</td>
                        <td>
                            <asp:TextBox ID="txtContWork" runat="server" TabIndex="33"></asp:TextBox>
                        </td>
                        <td>
                            Cell Phone</td>
                        <td>
                            <asp:TextBox ID="txtContCell" runat="server" TabIndex="34"></asp:TextBox>
                        </td>
                        <td colspan="4">
                            &nbsp;</td>
                    </tr>
                </table>
            </EditItemTemplate>
            <InsertItemTemplate>
                <table border="0" cellpadding="1" style="width:100%;">
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Property Information</td>
                    </tr>
                    <tr>
                        <td>
                            Loan #
                        </td>
                        <td>
                            <asp:TextBox ID="txtLoanNumber" runat="server" Height="20px" Width="164px" 
                                TabIndex="1"></asp:TextBox>
                        </td>
                        <td>
                            Client Ref #</td>
                        <td>
                            <asp:TextBox ID="txtClientRefNum" runat="server" Height="23px" TabIndex="2" 
                                Width="147px"></asp:TextBox>
                        </td>
                        <td>
                            Case #</td>
                        <td>
                            <asp:TextBox ID="txtCaseNumber" runat="server" Height="25px" TabIndex="3" 
                                Width="152px"></asp:TextBox>
                        </td>
                        <td>
                            Legal Desc</td>
                        <td>
                            <asp:TextBox ID="txtLegalDesc" runat="server" Height="22px" TabIndex="4" 
                                Width="152px"></asp:TextBox>
                        </td>
                        <td>
                            Property Type</td>
                        <td>
                            <asp:DropDownList ID="txtPropertyType" runat="server" 
                                DataSourceID="PropertyType" DataTextField="PropertyTypeName" 
                                DataValueField="PropertyTypeKey" Height="23px" TabIndex="5" Width="162px">
                                <asp:ListItem>(Select a Property Type)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Location Type
                        </td>
                        <td>
                            <asp:DropDownList ID="txtLocType" runat="server" AppendDataBoundItems="true" 
                                DataSourceID="LocationType" DataTextField="LocationTypeName" 
                                DataValueField="LocationTypeKey" TabIndex="6" Width="171px">
                                <asp:ListItem Value="0"> (Select a Location)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Address *</td>
                        <td>
                            <asp:TextBox ID="txtAddress" runat="server" TabIndex="7" Width="147px"></asp:TextBox>
                            </td>
                        <td>
                            Address 2</td>
                        <td>
                            <asp:TextBox ID="txtAddress2" runat="server" AutoPostBack="True" TabIndex="8" 
                                Width="154px"></asp:TextBox>
                        </td>
                        <td>
                            City *</td>
                        <td>
                            <asp:TextBox ID="txtCity" runat="server" Height="21px" TabIndex="9" 
                                Width="155px"></asp:TextBox>
                        </td>
                        <td>
                            State *</td>
                        <td>
                            <asp:DropDownList ID="StateID" runat="server" AppendDataBoundItems="True" 
                                DataSourceID="State" DataTextField="StateAbbr" DataValueField="StateKey" 
                                Height="23px" TabIndex="10" Width="158px" CausesValidation="True">
                                <asp:ListItem Selected="True" Value="0"> (Select a State)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RequiredFieldValidator ID="vldAddr" runat="server" 
                                ControlToValidate="txtAddress" ErrorMessage="Address is required" 
                                Font-Bold="True" Font-Size="XX-Small" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtCity" ErrorMessage="City is required" Font-Bold="True" 
                                Font-Size="XX-Small" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:CompareValidator ID="vldState" runat="server" ControlToValidate="StateID" 
                                ErrorMessage="Property state required" Font-Bold="True" Font-Size="XX-Small" 
                                ForeColor="Red" Operator="NotEqual" ValueToCompare="0" Type="Integer"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            County</td>
                        <td class="style3">
                            <asp:TextBox ID="txtCounty" runat="server" AutoPostBack="True" Height="22px" 
                                TabIndex="11" Width="160px"></asp:TextBox>
                        </td>
                        <td class="style3">
                            Zip *</td>
                        <td class="style3">
                            <asp:TextBox ID="txtZip" runat="server" Height="22px" TabIndex="12" 
                                Width="145px"></asp:TextBox>
                            <br />
                        </td>
                        <td class="style3">
                        </td>
                        <td class="style3">
                            <asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" 
                                Font-Size="Small" 
                                NavigateUrl="~/StaffSettings/AddressVerification.aspx?Address={0)" 
                                Target="_blank">Verify Address</asp:HyperLink>
                        </td>
                        <td class="style3">
                        </td>
                        <td class="style3">
                            <asp:Button ID="btnAddrVerif" runat="server" onclick="btnAddrVerif_Click" 
                                Text="Verify Address" TabIndex="13" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtZip" ErrorMessage="Zip Required" Font-Bold="True" 
                                Font-Italic="False" Font-Size="XX-Small" ForeColor="Red"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="txtZip" ErrorMessage="5 digits" Font-Bold="True" 
                                Font-Size="XX-Small" ForeColor="Red" ValidationExpression="^\d{5}$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Order Information</td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Product *</td>
                        <td class="style4">
                            <asp:DropDownList ID="ReportTypeID" runat="server" AppendDataBoundItems="true" 
                                DataSourceID="ReportType" DataTextField="ReportTypeName" 
                                DataValueField="ReportTypeKey" Height="23px" TabIndex="14" Width="172px" 
                                CausesValidation="True">
                                <asp:ListItem Selected="True" Value="0"> (Select a Report Type)</asp:ListItem>
                            </asp:DropDownList>
                            <br />
                        </td>
                        <td class="style4">
                            Rush Indicator</td>
                        <td class="style4">
                            <asp:DropDownList ID="ddRushTypeKey" runat="server" Height="18px" Width="157px" 
                                AppendDataBoundItems="True" DataSourceID="RushTypeList" 
                                DataTextField="RushType" DataValueField="RushTypeKey" TabIndex="15">
                                <asp:ListItem Selected="True" Value="1">None</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style4">
                            Client *</td>
                        <td class="style4">
                            <asp:DropDownList ID="ClientID" runat="server" AppendDataBoundItems="True" 
                                AutoPostBack="True" DataSourceID="Client" DataTextField="ClientName" 
                                DataValueField="ClientKey" Height="22px" TabIndex="16" Width="172px" 
                                CausesValidation="True">
                                <asp:ListItem Selected="True" Value="0"> (Select a Client)</asp:ListItem>
                            </asp:DropDownList>
                            <br />
                        </td>
                        <td class="style4">
                            Ordered By</td>
                        <td class="style4">
                            <asp:DropDownList ID="ddClientUser" runat="server" DataSourceID="ClientUsers" 
                                DataTextField="UserName" DataValueField="UserId" Height="22px" 
                                SelectedValue='<%# Bind("ClientID") %>' Width="159px" TabIndex="17">
                            </asp:DropDownList>
                        </td>
                        <td class="style4">
                            Ordered By Email</td>
                        <td class="style4">
                            <input id="ClientEmail1" tabindex="18" type="text" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                ControlToValidate="ReportTypeID" ErrorMessage="Product required" 
                                Font-Bold="True" Font-Size="X-Small" ForeColor="Red" Operator="NotEqual" 
                                ValueToCompare="0" Type="Integer"></asp:CompareValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:CompareValidator ID="CompareValidator2" runat="server" 
                                ControlToValidate="ClientID" ErrorMessage="Client required" Font-Bold="True" 
                                Font-Size="X-Small" ForeColor="Red" Operator="NotEqual" 
                                ValueToCompare="0" Type="Integer"></asp:CompareValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            Intended Use</td>
                        <td>
                            <asp:DropDownList ID="IntendedUseID" runat="server" AppendDataBoundItems="True" 
                                DataSourceID="IntendedUse" DataTextField="IntendedUseName" 
                                DataValueField="IntendedUseKey" Height="21px" TabIndex="19" Width="170px">
                                <asp:ListItem Value="0"> (Select the Intended Use)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Occupancy</td>
                        <td>
                            <asp:DropDownList ID="OccupancyID" runat="server" AppendDataBoundItems="true" 
                                DataSourceID="Occupancy" DataTextField="OccupancyTypeName" 
                                DataValueField="OccupancyTypeKey" Height="22px" TabIndex="20" 
                                Width="161px">
                                <asp:ListItem Value="0"> (Select Occupancy)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Client Due Date *</td>
                        <td>
                            <asp:TextBox ID="txtClientDueDate" runat="server" Height="21px" Width="129px" 
                                TabIndex="21"></asp:TextBox>
                          
                        </td>
                        <td>
                            Loan Type</td>
                        <td>
                            <asp:DropDownList ID="LoanTypeID" runat="server" DataSourceID="LoanType" 
                                DataTextField="LoanTypeName" DataValueField="LoanTypeKey" Height="23px" 
                                TabIndex="22" Width="163px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            Loan Amount</td>
                        <td>
                            <asp:TextBox ID="intLoanAmount" runat="server" AutoPostBack="True" 
                                Height="21px" TabIndex="23" Width="151px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                ControlToValidate="txtClientDueDate" ErrorMessage="Client due date required" 
                                Font-Bold="True" Font-Size="X-Small" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Borrower Information</td>
                    </tr>
                    <tr>
                        <td>
                            Last Name</td>
                        <td>
                            <asp:TextBox ID="txtBorrLast" runat="server" TabIndex="24" Height="21px" 
                                Width="161px"></asp:TextBox>
                        </td>
                        <td>
                            First Name</td>
                        <td>
                            <asp:TextBox ID="txtBorrFirst" runat="server" TabIndex="25" Height="20px" 
                                Width="149px"></asp:TextBox>
                        </td>
                        <td>
                            Email</td>
                        <td>
                            <asp:TextBox ID="txtBorrEmail" runat="server" TabIndex="26" Height="22px" 
                                Width="162px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Home Phone</td>
                        <td>
                            <asp:TextBox ID="txtBorrHome" runat="server" TabIndex="27" Width="160px"></asp:TextBox>
                        </td>
                        <td>
                            Work Phone</td>
                        <td>
                            <asp:TextBox ID="txtBorrWork" runat="server" TabIndex="28" Height="24px" 
                                Width="149px"></asp:TextBox>
                        </td>
                        <td>
                            Cell Phone</td>
                        <td>
                            <asp:TextBox ID="txtBorrCell" runat="server" TabIndex="29" Height="22px" 
                                Width="160px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                ControlToValidate="txtBorrHome" ErrorMessage="000-000-0000" Font-Bold="True" 
                                Font-Size="X-Small" ForeColor="Red" 
                                ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                                ControlToValidate="txtBorrWork" ErrorMessage="000-000-0000" Font-Bold="True" 
                                Font-Size="X-Small" ForeColor="Red" 
                                ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" 
                                ControlToValidate="txtBorrCell" ErrorMessage="000-000-0000" Font-Bold="True" 
                                Font-Size="X-Small" ForeColor="Red" 
                                ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Contact Information</td>
                    </tr>
                    <tr>
                        <td>
                            Last Name</td>
                        <td>
                            <asp:TextBox ID="txtContLast" runat="server" TabIndex="30" Height="23px" 
                                Width="160px"></asp:TextBox>
                        </td>
                        <td>
                            First Name</td>
                        <td>
                            <asp:TextBox ID="txtContFIrst" runat="server" TabIndex="31" Height="24px" 
                                Width="152px"></asp:TextBox>
                        </td>
                        <td>
                            Email</td>
                        <td>
                            <asp:TextBox ID="txtContEmail" runat="server" TabIndex="32" Width="159px"></asp:TextBox>
                        </td>
                        <td>
                            Relation</td>
                        <td>
                            <asp:DropDownList ID="ContRelationID" runat="server" DataSourceID="Relation" 
                                DataTextField="RelationName" DataValueField="RelationKey" Height="22px" 
                                TabIndex="33" Width="155px">
                                <asp:ListItem>(Select a Relation)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Home Phone</td>
                        <td>
                            <asp:TextBox ID="txtContHome" runat="server" TabIndex="34" Height="22px" 
                                Width="161px"></asp:TextBox>
                        </td>
                        <td>
                            Work Phone</td>
                        <td>
                            <asp:TextBox ID="txtContWork" runat="server" TabIndex="35" Width="153px"></asp:TextBox>
                        </td>
                        <td>
                            Cell Phone</td>
                        <td>
                            <asp:TextBox ID="txtContCell" runat="server" TabIndex="36" Width="161px"></asp:TextBox>
                        </td>
                        <td colspan="4">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator10" 
                                runat="server" ControlToValidate="txtContHome" ErrorMessage="000-000-0000" 
                                Font-Bold="True" Font-Size="X-Small" ForeColor="Red" 
                                ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator11" 
                                runat="server" ControlToValidate="txtContWork" ErrorMessage="000-000-0000" 
                                Font-Bold="True" Font-Size="X-Small" ForeColor="Red" 
                                ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator12" 
                                runat="server" ControlToValidate="txtContHome" ErrorMessage="000-000-0000" 
                                Font-Bold="True" Font-Size="X-Small" ForeColor="Red" 
                                ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$"></asp:RegularExpressionValidator>
                        </td>
                        <td colspan="4">
                            &nbsp;</td>
                    </tr>
                </table>
            </InsertItemTemplate>


            <ItemTemplate>
                <table style="width:100%;" cellpadding="1" cellspacing="1">
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Property Information</td>
                    </tr>
                    <tr>
                        <td>
                            Loan #
                        </td>
                        <td>
                            <asp:TextBox ID="txtLoanNumber" runat="server" Height="20px" Width="164px" 
                                Text='<%# Bind("txtLoanNumber") %>'></asp:TextBox>
                        </td>
                        <td>
                            Client Ref #</td>
                        <td>
                            <asp:TextBox ID="txtClientRefNum" runat="server" Height="23px" TabIndex="1" 
                                Width="147px"></asp:TextBox>
                        </td>
                        <td>
                            Case #</td>
                        <td>
                            <asp:TextBox ID="txtCaseNumber" runat="server" Height="25px" TabIndex="3" 
                                Width="152px"></asp:TextBox>
                        </td>
                        <td>
                            Legal Desc</td>
                        <td>
                            <asp:TextBox ID="txtLegalDesc" runat="server" Height="22px" TabIndex="4" 
                                Width="152px"></asp:TextBox>
                        </td>
                        <td>
                            Property Type</td>
                        <td>
                            <asp:DropDownList ID="txtPropertyType" runat="server" 
                                DataSourceID="PropertyType" DataTextField="PropertyTypeName" 
                                DataValueField="PropertyTypeKey" Height="23px" TabIndex="5" Width="145px">
                                <asp:ListItem>(Select a Property Type)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Location Type
                        </td>
                        <td>
                            <asp:DropDownList ID="txtLocType" runat="server" AppendDataBoundItems="true" 
                                DataSourceID="LocationType" DataTextField="LocationTypeName" 
                                DataValueField="LocationTypeKey" TabIndex="6" Width="171px">
                                <asp:ListItem> (Select a Location)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Address *</td>
                        <td>
                            <asp:TextBox ID="txtAddress" runat="server" TabIndex="7" Width="147px"></asp:TextBox>
                        </td>
                        <td>
                            Address 2</td>
                        <td>
                            <asp:TextBox ID="txtAddress2" runat="server" AutoPostBack="True" TabIndex="8" 
                                Width="154px"></asp:TextBox>
                        </td>
                        <td>
                            City *</td>
                        <td>
                            <asp:TextBox ID="txtCity" runat="server" Height="21px" TabIndex="9" 
                                Width="155px"></asp:TextBox>
                        </td>
                        <td>
                            State *</td>
                        <td>
                            <asp:DropDownList ID="StateID" runat="server" AppendDataBoundItems="True" 
                                DataSourceID="State" DataTextField="StateAbbr" DataValueField="StateKey" 
                                Height="22px" TabIndex="10" Width="144px">
                                <asp:ListItem> (Select a State)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            County</td>
                        <td>
                            <asp:TextBox ID="txtCounty" runat="server" AutoPostBack="True" Height="22px" 
                                TabIndex="11" Width="160px"></asp:TextBox>
                        </td>
                        <td>
                            Zip
                        </td>
                        <td>
                            <asp:TextBox ID="txtZip" runat="server" Height="22px" TabIndex="12" 
                                Width="145px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Order Information</td>
                    </tr>
                    <tr>
                        <td>
                            Product</td>
                        <td>
                            <asp:DropDownList ID="ReportTypeID" runat="server" AppendDataBoundItems="true" 
                                DataSourceID="ReportType" DataTextField="ReportTypeName" 
                                DataValueField="ReportTypeKey" Height="23px" TabIndex="13" Width="172px">
                                <asp:ListItem> (Select a Report Type)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Rush Indicator</td>
                        <td>
                            <asp:DropDownList ID="DropDownList2" runat="server" Height="18px" Width="154px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            Client</td>
                        <td>
                            <asp:DropDownList ID="ClientID" runat="server" AppendDataBoundItems="true" 
                                AutoPostBack="True" DataSourceID="Client" DataTextField="ClientName" 
                                DataValueField="ClientKey" Height="22px" TabIndex="15" Width="172px">
                                <asp:ListItem> (Select a Client)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Ordered By</td>
                        <td>
                            <asp:DropDownList ID="DropDownList1" runat="server" Height="22px" Width="156px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            Ordered By Email</td>
                        <td>
                            <input id="ClientEmail" type="text" tabindex="17" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Intended Use</td>
                        <td>
                            <asp:DropDownList ID="IntendedUseID" runat="server" AppendDataBoundItems="True" 
                                DataSourceID="IntendedUse" DataTextField="IntendedUseName" 
                                DataValueField="IntendedUseKey" Height="21px" TabIndex="18" Width="170px">
                                <asp:ListItem> (Select the Intended Use)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Occupancy</td>
                        <td>
                            <asp:DropDownList ID="OccupancyID" runat="server" AppendDataBoundItems="true" 
                                DataSourceID="Occupancy" DataTextField="OccupancyTypeName" 
                                DataValueField="OccupancyTypeKey" Height="22px" TabIndex="19" Width="161px">
                                <asp:ListItem> (Select Occupancy)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Client Due Date</td>
                        <td>
                            
                        </td>
                        <td>
                            Loan Type</td>
                        <td>
                            <asp:DropDownList ID="LoanTypeID" runat="server" DataSourceID="LoanType" 
                                DataTextField="LoanTypeName" DataValueField="LoanTypeKey" Height="23px" 
                                TabIndex="21" Width="163px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            Loan Amount</td>
                        <td>
                            <asp:TextBox ID="intLoanAmount" runat="server" AutoPostBack="True" 
                                Height="21px" TabIndex="22" Width="151px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Borrower Information</td>
                    </tr>
                    <tr>
                        <td>
                            Last Name</td>
                        <td>
                            <asp:TextBox ID="txtBorrLast" runat="server" TabIndex="23"></asp:TextBox>
                        </td>
                        <td>
                            First Name</td>
                        <td>
                            <asp:TextBox ID="txtBorrFirst" runat="server" TabIndex="24"></asp:TextBox>
                        </td>
                        <td>
                            Email</td>
                        <td>
                            <asp:TextBox ID="txtBorrEmail" runat="server" TabIndex="25"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Home Phone</td>
                        <td>
                            <asp:TextBox ID="txtBorrHome" runat="server" TabIndex="26"></asp:TextBox>
                        </td>
                        <td>
                            Work Phone</td>
                        <td>
                            <asp:TextBox ID="txtBorrWork" runat="server" TabIndex="27"></asp:TextBox>
                        </td>
                        <td>
                            Cell Phone</td>
                        <td>
                            <asp:TextBox ID="txtBorrCell" runat="server" TabIndex="28"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Contact Information</td>
                    </tr>
                    <tr>
                        <td>
                            Last Name</td>
                        <td>
                            <asp:TextBox ID="txtContLast" runat="server" TabIndex="29"></asp:TextBox>
                        </td>
                        <td>
                            First Name</td>
                        <td>
                            <asp:TextBox ID="txtContFIrst" runat="server" TabIndex="30"></asp:TextBox>
                        </td>
                        <td>
                            Email</td>
                        <td>
                            <asp:TextBox ID="txtContEmail" runat="server" TabIndex="31"></asp:TextBox>
                        </td>
                        <td>
                            Relation</td>
                        <td>
                            <asp:DropDownList ID="ContRelationID" runat="server" DataSourceID="Relation" 
                                DataTextField="RelationName" DataValueField="RelationKey" Height="16px" 
                                TabIndex="35" Width="124px">
                                <asp:ListItem>(Select a Relation)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Home Phone</td>
                        <td>
                            <asp:TextBox ID="txtContHome" runat="server" TabIndex="32"></asp:TextBox>
                        </td>
                        <td>
                            Work Phone</td>
                        <td>
                            <asp:TextBox ID="txtContWork" runat="server" TabIndex="33"></asp:TextBox>
                        </td>
                        <td>
                            Cell Phone</td>
                        <td>
                            <asp:TextBox ID="txtContCell" runat="server" TabIndex="34"></asp:TextBox>
                        </td>
                        <td colspan="4">
                            &nbsp;</td>
                    </tr>
                </table>
            </ItemTemplate>


        </asp:FormView>
       
        <asp:Button ID="btnManualUpload" runat="server" Height="33px" TabIndex="37" 
            Text="Upload" Width="393px" />
            <asp:SqlDataSource ID="LocationType" runat="server" 
                ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
                SelectCommand="SELECT DISTINCT [LocationTypeKey], [LocationTypeName] FROM [LocationType]">
            </asp:SqlDataSource>
            <br />
        
            <asp:SqlDataSource ID="ClientUsers" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="GetClientUsersByClientKey" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:FormParameter DefaultValue="" FormField="ClientID" Name="ClientKey" 
                        Type="Int32" />
                </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="RushTypeList" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="GetRushTypeList" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
            <asp:SqlDataSource ID="State" runat="server" 
                ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
                SelectCommand="SELECT [StateAbbr], [StateKey] FROM [State] ORDER BY [StateAbbr]">
            </asp:SqlDataSource>
        <asp:SqlDataSource ID="PropertyType" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="SELECT DISTINCT PropertyTypeKey, PropertyTypeName FROM PropertyType WHERE (Deleted IS NULL) ORDER BY PropertyTypeName">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="ReportType" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="SELECT [ReportTypeKey], [ReportTypeName] FROM [ReportType]">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="Client" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="GetClientList" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="IntendedUse" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="SELECT [IntendedUseKey], [IntendedUseName], [Deleted] FROM [IntendedUse] ORDER BY [IntendedUseName]">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="Occupancy" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="SELECT [OccupancyTypeKey], [OccupancyTypeName], [Deleted] FROM [OccupancyType] WHERE ([Deleted] IS NULL) ORDER BY [OccupancyTypeName]">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="LoanType" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="SELECT [LoanTypeKey], [LoanTypeName] FROM [LoanType] WHERE ([Deleted] IS NULL) ORDER BY [LoanTypeName]">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="Relation" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="SELECT [RelationKey], [RelationName] FROM [Relation] WHERE ([Deleted] IS NULL) ORDER BY [RelationName]">
        </asp:SqlDataSource>
       
        </asp:Panel>
    <asp:Panel ID="pnlUpload" runat="server" Visible="false">
    Please select an Excel file to import:<br />
    <asp:FileUpload ID="FileUploadExcel" runat="server" style="margin-bottom: 0px" />
    <asp:Label ID="Label1" runat="server"></asp:Label>
        <asp:Button ID="btnFileUpload" runat="server" Text="View Upload" />
        <asp:Button ID="btnWriteData" runat="server" Text="Write to File" />
        <br />
        <asp:Label ID="Label2" runat="server"></asp:Label>
    </asp:Panel>
    <asp:Panel ID="pnlImport" runat="server" Visible="false">
    </asp:Panel>
</asp:Content>

Open in new window

0
rcowen00
Asked:
rcowen00
  • 4
  • 3
1 Solution
 
CodeCruiserCommented:
>not working

Does that mean it does not change focus in the sequence that you expect?
0
 
rcowen00Author Commented:
Yes
0
 
CodeCruiserCommented:
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
rcowen00Author Commented:
I read the article but it doesn't seem to answer my question.  I have set the TabIndex properties on all the textboxes and drop down controls on the page.  If I place my cursor in the TabIndex 1 textbox and click tab the control loses focus but I don't know what does get the focus.  
0
 
CodeCruiserCommented:
Its quite challenging to work out the tab indices in ASP.NET as it also depends on the browser. What is the control next down the control which looses focus?
0
 
rcowen00Author Commented:
Line 55 (txtLoanNumber) should have focus first and then tab to line 61 (txtClientRefNum).  The page seems to lose focus entirely.
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="StaffSite.Master" CodeBehind="Order_StaffManual.aspx.vb" Inherits="ProVal.Order" %>

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

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

   
    <style type="text/css">
        .style3
        {
            height: 31px;
        }
        #ClientEmail1
        {
            height: 22px;
            width: 154px;
        }
        .style4
        {
            height: 29px;
        }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server" >

     <asp:Panel ID="pnlBulkOption" runat="server">
<asp:Button ID="ButtonUpload" runat="server" Text="Upload Excel Spreadsheet" CausesValidation="False" />
         <asp:Label ID="lblSuccessfullyImport" runat="server" Font-Bold="True" 
             Font-Size="Medium" Text="Order successfully imported"></asp:Label>
    </asp:Panel>
    
    <asp:Panel ID="pnlManualOrder" runat="server" Visible="true">
    
        <asp:FormView ID="frmManualOrder" runat="server" DefaultMode="Insert">
            <EditItemTemplate>
            </EditItemTemplate>
            <InsertItemTemplate>
                <table border="0" cellpadding="1" style="width:100%;">
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Property Information</td>
                    </tr>
                    <tr>
                        <td>
                            Loan #
                        </td>
                        <td>
                            <asp:TextBox ID="txtLoanNumber" runat="server" Height="20px" Width="164px" 
                                TabIndex="1"></asp:TextBox>
                        </td>
                        <td>
                            Client Ref #</td>
                        <td>
                            <asp:TextBox ID="txtClientRefNum" runat="server" Height="23px" TabIndex="2" 
                                Width="147px"></asp:TextBox>
                        </td>
                        <td>
                            Case #</td>
                        <td>
                            <asp:TextBox ID="txtCaseNumber" runat="server" Height="25px" TabIndex="3" 
                                Width="152px"></asp:TextBox>
                        </td>
                        <td>
                            Legal Desc</td>
                        <td>
                            <asp:TextBox ID="txtLegalDesc" runat="server" Height="22px" TabIndex="4" 
                                Width="152px"></asp:TextBox>
                        </td>
                        <td>
                            Property Type</td>
                        <td>
                            <asp:DropDownList ID="txtPropertyType" runat="server" 
                                DataSourceID="PropertyType" DataTextField="PropertyTypeName" 
                                DataValueField="PropertyTypeKey" Height="23px" TabIndex="5" Width="162px" 
                                AppendDataBoundItems="True">
                                <asp:ListItem>(Select a Property Type)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Location Type
                        </td>
                        <td>
                            <asp:DropDownList ID="txtLocType" runat="server" AppendDataBoundItems="true" 
                                DataSourceID="LocationType" DataTextField="LocationTypeName" 
                                DataValueField="LocationTypeKey" TabIndex="6" Width="171px">
                                <asp:ListItem Value="0"> (Select a Location)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Address *</td>
                        <td>
                            <asp:TextBox ID="txtAddress" runat="server" TabIndex="7" Width="147px"></asp:TextBox>
                            </td>
                        <td>
                            Address 2</td>
                        <td>
                            <asp:TextBox ID="txtAddress2" runat="server" AutoPostBack="True" TabIndex="8" 
                                Width="154px"></asp:TextBox>
                        </td>
                        <td>
                            City *</td>
                        <td>
                            <asp:TextBox ID="txtCity" runat="server" Height="21px" TabIndex="9" 
                                Width="155px"></asp:TextBox>
                        </td>
                        <td>
                            State *</td>
                        <td>
                            <asp:DropDownList ID="StateID" runat="server" AppendDataBoundItems="True" 
                                DataSourceID="State" DataTextField="StateAbbr" DataValueField="StateKey" 
                                Height="23px" TabIndex="10" Width="158px" CausesValidation="True">
                                <asp:ListItem Selected="True" Value="0"> (Select a State)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RequiredFieldValidator ID="vldAddr" runat="server" 
                                ControlToValidate="txtAddress" ErrorMessage="Address is required" 
                                Font-Bold="True" Font-Size="XX-Small" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtCity" ErrorMessage="City is required" Font-Bold="True" 
                                Font-Size="XX-Small" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:CompareValidator ID="vldState" runat="server" ControlToValidate="StateID" 
                                ErrorMessage="Property state required" Font-Bold="True" Font-Size="XX-Small" 
                                ForeColor="Red" Operator="NotEqual" ValueToCompare="0" Type="Integer"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style3">
                            County</td>
                        <td class="style3">
                            <asp:TextBox ID="txtCounty" runat="server" AutoPostBack="True" Height="22px" 
                                TabIndex="11" Width="160px"></asp:TextBox>
                        </td>
                        <td class="style3">
                            Zip *</td>
                        <td class="style3">
                            <asp:TextBox ID="txtZip" runat="server" Height="22px" TabIndex="12" 
                                Width="145px"></asp:TextBox>
                            <br />
                        </td>
                        <td class="style3">
                        </td>
                        <td class="style3">
                            <asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" 
                                Font-Size="Small" 
                                NavigateUrl="~/StaffSettings/AddressVerification.aspx?Address={0)" 
                                Target="_blank">Verify Address</asp:HyperLink>
                        </td>
                        <td class="style3">
                        </td>
                        <td class="style3">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtZip" ErrorMessage="Zip Required" Font-Bold="True" 
                                Font-Italic="False" Font-Size="XX-Small" ForeColor="Red"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="txtZip" ErrorMessage="5 digits" Font-Bold="True" 
                                Font-Size="XX-Small" ForeColor="Red" ValidationExpression="^\d{5}$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Order Information</td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Product *</td>
                        <td class="style4">
                            <asp:DropDownList ID="ReportTypeID" runat="server" AppendDataBoundItems="true" 
                                DataSourceID="ReportType" DataTextField="ReportTypeName" 
                                DataValueField="ReportTypeKey" Height="23px" TabIndex="14" Width="172px" 
                                CausesValidation="True">
                                <asp:ListItem Selected="True" Value="0"> (Select a Report Type)</asp:ListItem>
                            </asp:DropDownList>
                            <br />
                        </td>
                        <td class="style4">
                            Rush Indicator</td>
                        <td class="style4">
                            <asp:DropDownList ID="ddRushTypeKey" runat="server" Height="18px" Width="157px" 
                                AppendDataBoundItems="True" DataSourceID="RushTypeList" 
                                DataTextField="RushType" DataValueField="RushTypeKey" TabIndex="15">
                                <asp:ListItem Selected="True" Value="1">None</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style4">
                            Client *</td>
                        <td class="style4">
                            <asp:DropDownList ID="ClientID" runat="server" AppendDataBoundItems="True" 
                                AutoPostBack="True" DataSourceID="Client" DataTextField="ClientName" 
                                DataValueField="ClientKey" Height="22px" TabIndex="16" Width="172px" 
                                CausesValidation="True">
                                <asp:ListItem Selected="True" Value="0"> (Select a Client)</asp:ListItem>
                            </asp:DropDownList>
                            <br />
                        </td>
                        <td class="style4">
                            Ordered By</td>
                        <td class="style4">
                            <asp:DropDownList ID="ddClientUser" runat="server" DataSourceID="ClientUsers" 
                                DataTextField="UserName" DataValueField="UserId" Height="22px" 
                                SelectedValue='<%# Bind("ClientID") %>' Width="159px" TabIndex="17">
                            </asp:DropDownList>
                        </td>
                        <td class="style4">
                            Ordered By Email</td>
                        <td class="style4">
                            <input id="ClientEmail1" tabindex="18" type="text" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                ControlToValidate="ReportTypeID" ErrorMessage="Product required" 
                                Font-Bold="True" Font-Size="X-Small" ForeColor="Red" Operator="NotEqual" 
                                ValueToCompare="0" Type="Integer"></asp:CompareValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:CompareValidator ID="CompareValidator2" runat="server" 
                                ControlToValidate="ClientID" ErrorMessage="Client required" Font-Bold="True" 
                                Font-Size="X-Small" ForeColor="Red" Operator="NotEqual" 
                                ValueToCompare="0" Type="Integer"></asp:CompareValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            Intended Use</td>
                        <td>
                            <asp:DropDownList ID="IntendedUseID" runat="server" AppendDataBoundItems="True" 
                                DataSourceID="IntendedUse" DataTextField="IntendedUseName" 
                                DataValueField="IntendedUseKey" Height="21px" TabIndex="19" Width="170px">
                                <asp:ListItem Value="0"> (Select the Intended Use)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Occupancy</td>
                        <td>
                            <asp:DropDownList ID="OccupancyID" runat="server" AppendDataBoundItems="true" 
                                DataSourceID="Occupancy" DataTextField="OccupancyTypeName" 
                                DataValueField="OccupancyTypeKey" Height="22px" TabIndex="20" 
                                Width="161px">
                                <asp:ListItem Value="0"> (Select Occupancy)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            Client Due Date *</td>
                        <td>
                            <asp:TextBox ID="txtClientDueDate" runat="server" Height="21px" Width="129px" 
                                TabIndex="21"></asp:TextBox>
                          
                        </td>
                        <td>
                            Loan Type</td>
                        <td>
                            <asp:DropDownList ID="LoanTypeID" runat="server" DataSourceID="LoanType" 
                                DataTextField="LoanTypeName" DataValueField="LoanTypeKey" Height="23px" 
                                TabIndex="22" Width="163px">
                            </asp:DropDownList>
                        </td>
                        <td>
                            Loan Amount</td>
                        <td>
                            <asp:TextBox ID="intLoanAmount" runat="server" AutoPostBack="True" 
                                Height="21px" TabIndex="23" Width="151px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                ControlToValidate="txtClientDueDate" ErrorMessage="Client due date required" 
                                Font-Bold="True" Font-Size="X-Small" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Borrower Information</td>
                    </tr>
                    <tr>
                        <td>
                            Last Name</td>
                        <td>
                            <asp:TextBox ID="txtBorrLast" runat="server" TabIndex="24" Height="21px" 
                                Width="161px"></asp:TextBox>
                        </td>
                        <td>
                            First Name</td>
                        <td>
                            <asp:TextBox ID="txtBorrFirst" runat="server" TabIndex="25" Height="20px" 
                                Width="149px"></asp:TextBox>
                        </td>
                        <td>
                            Email</td>
                        <td>
                            <asp:TextBox ID="txtBorrEmail" runat="server" TabIndex="26" Height="22px" 
                                Width="162px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Home Phone</td>
                        <td>
                            <asp:TextBox ID="txtBorrHome" runat="server" TabIndex="27" Width="160px"></asp:TextBox>
                        </td>
                        <td>
                            Work Phone</td>
                        <td>
                            <asp:TextBox ID="txtBorrWork" runat="server" TabIndex="28" Height="24px" 
                                Width="149px"></asp:TextBox>
                        </td>
                        <td>
                            Cell Phone</td>
                        <td>
                            <asp:TextBox ID="txtBorrCell" runat="server" TabIndex="29" Height="22px" 
                                Width="160px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                ControlToValidate="txtBorrHome" ErrorMessage="000-000-0000" Font-Bold="True" 
                                Font-Size="X-Small" ForeColor="Red" 
                                ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                                ControlToValidate="txtBorrWork" ErrorMessage="000-000-0000" Font-Bold="True" 
                                Font-Size="X-Small" ForeColor="Red" 
                                ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" 
                                ControlToValidate="txtBorrCell" ErrorMessage="000-000-0000" Font-Bold="True" 
                                Font-Size="X-Small" ForeColor="Red" 
                                ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="10" style="font-size: large; font-weight: bold">
                            Contact Information</td>
                    </tr>
                    <tr>
                        <td>
                            Last Name</td>
                        <td>
                            <asp:TextBox ID="txtContLast" runat="server" TabIndex="30" Height="23px" 
                                Width="160px"></asp:TextBox>
                        </td>
                        <td>
                            First Name</td>
                        <td>
                            <asp:TextBox ID="txtContFIrst" runat="server" TabIndex="31" Height="24px" 
                                Width="152px"></asp:TextBox>
                        </td>
                        <td>
                            Email</td>
                        <td>
                            <asp:TextBox ID="txtContEmail" runat="server" TabIndex="32" Width="159px"></asp:TextBox>
                        </td>
                        <td>
                            Relation</td>
                        <td>
                            <asp:DropDownList ID="ContRelationID" runat="server" DataSourceID="Relation" 
                                DataTextField="RelationName" DataValueField="RelationKey" Height="22px" 
                                TabIndex="33" Width="155px">
                                <asp:ListItem>(Select a Relation)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Home Phone</td>
                        <td>
                            <asp:TextBox ID="txtContHome" runat="server" TabIndex="34" Height="22px" 
                                Width="161px"></asp:TextBox>
                        </td>
                        <td>
                            Work Phone</td>
                        <td>
                            <asp:TextBox ID="txtContWork" runat="server" TabIndex="35" Width="153px"></asp:TextBox>
                        </td>
                        <td>
                            Cell Phone</td>
                        <td>
                            <asp:TextBox ID="txtContCell" runat="server" TabIndex="36" Width="161px"></asp:TextBox>
                        </td>
                        <td colspan="4">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator10" 
                                runat="server" ControlToValidate="txtContHome" ErrorMessage="000-000-0000" 
                                Font-Bold="True" Font-Size="X-Small" ForeColor="Red" 
                                ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator11" 
                                runat="server" ControlToValidate="txtContWork" ErrorMessage="000-000-0000" 
                                Font-Bold="True" Font-Size="X-Small" ForeColor="Red" 
                                ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$"></asp:RegularExpressionValidator>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator12" 
                                runat="server" ControlToValidate="txtContHome" ErrorMessage="000-000-0000" 
                                Font-Bold="True" Font-Size="X-Small" ForeColor="Red" 
                                ValidationExpression="^[2-9]\d{2}-\d{3}-\d{4}$"></asp:RegularExpressionValidator>
                        </td>
                        <td colspan="4">
                            &nbsp;</td>
                    </tr>
                </table>
            </InsertItemTemplate>
            <ItemTemplate>
            </ItemTemplate>
            </asp:FormView>
       
        <asp:Button ID="btnManualUpload" runat="server" Height="33px" TabIndex="37" 
            Text="Upload" Width="393px" />
            <asp:SqlDataSource ID="LocationType" runat="server" 
                ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
                SelectCommand="SELECT DISTINCT [LocationTypeKey], [LocationTypeName] FROM [LocationType]">
            </asp:SqlDataSource>
            <br />
        
            <asp:SqlDataSource ID="ClientUsers" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="GetClientUsersByClientKey" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:FormParameter DefaultValue="" FormField="ClientID" Name="ClientKey" 
                        Type="Int32" />
                </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="RushTypeList" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="GetRushTypeList" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
            <asp:SqlDataSource ID="State" runat="server" 
                ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
                SelectCommand="SELECT [StateAbbr], [StateKey] FROM [State] ORDER BY [StateAbbr]">
            </asp:SqlDataSource>
        <asp:SqlDataSource ID="PropertyType" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="SELECT DISTINCT PropertyTypeKey, PropertyTypeName FROM PropertyType WHERE (Deleted IS NULL) ORDER BY PropertyTypeName">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="ReportType" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="SELECT [ReportTypeKey], [ReportTypeName] FROM [ReportType]">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="Client" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="GetClientList" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="IntendedUse" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="SELECT [IntendedUseKey], [IntendedUseName], [Deleted] FROM [IntendedUse] ORDER BY [IntendedUseName]">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="Occupancy" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="SELECT [OccupancyTypeKey], [OccupancyTypeName], [Deleted] FROM [OccupancyType] WHERE ([Deleted] IS NULL) ORDER BY [OccupancyTypeName]">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="LoanType" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="SELECT [LoanTypeKey], [LoanTypeName] FROM [LoanType] WHERE ([Deleted] IS NULL) ORDER BY [LoanTypeName]">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="Relation" runat="server" 
            ConnectionString="<%$ ConnectionStrings:myprovalConnectionString %>" 
            SelectCommand="SELECT [RelationKey], [RelationName] FROM [Relation] WHERE ([Deleted] IS NULL) ORDER BY [RelationName]">
        </asp:SqlDataSource>
       
        </asp:Panel>
    <asp:Panel ID="pnlUpload" runat="server" Visible="false">
    Please select an Excel file to import:<br />
    <asp:FileUpload ID="FileUploadExcel" runat="server" style="margin-bottom: 0px" />
    <asp:Label ID="Label1" runat="server"></asp:Label>
        <asp:Button ID="btnFileUpload" runat="server" Text="View Upload" />
        <asp:Button ID="btnWriteData" runat="server" Text="Write to File" />
        <br />
        <asp:Label ID="Label2" runat="server"></asp:Label>
    </asp:Panel>
    <asp:Panel ID="pnlImport" runat="server" Visible="false">
    </asp:Panel>
</asp:Content>

Open in new window

0
 
CodeCruiserCommented:
I have just tested your code in both Chrome and IE8 and it works perfect.

I removed the

Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now