Monday, 9 January 2012

(How to Set Tab Index)In Pressing tab key user go to next control

// Means Every control's we set a property which means TabIndex=""
                  <div>
            <asp:TextBox ID="TxtCompanyName" runat="server" TabIndex="1" MaxLength="100" />
        </div>
         <div>
            <asp:TextBox ID="TxtLegalName" runat="server" TabIndex="2" MaxLength="100" />
        </div>  

        <div>
            <asp:TextBox ID="TxtStreet" runat="server" TabIndex="3" MaxLength="100" />
        </div>
             <div>
            <asp:DropDownList ID="DdlCountry" runat="server" TabIndex="4" AutoPostBack="True"
                OnSelectedIndexChanged="DdlCountry_SelectedIndexChanged" />
        </div>   

        <div>
            <asp:DropDownList ID="DdlState" runat="server" TabIndex="5" AutoPostBack="True" OnSelectedIndexChanged="DdlState_SelectedIndexChanged" />
          <div>
            <asp:DropDownList ID="DdlCity" runat="server" TabIndex="6" />
        </div>      

        <div ">
            <asp:TextBox ID="TxtZip" runat="server" TabIndex="6" MaxLength="6" />
                 <div >
            <asp:TextBox ID="TxtPhone" runat="server" TabIndex="7" MaxLength="25" />
        </div>
                <div >
            <asp:TextBox ID="TxtFax" runat="server" TabIndex="8" MaxLength="25" />
        </div>
 

        <div >
            <asp:TextBox ID="TxtEmail" runat="server" TabIndex="9" MaxLength="50" Width="220" />
        </div>
              <div >
            <asp:TextBox ID="TxtWebSite" runat="server" TabIndex="10" MaxLength="25" Width="220" />
                        <div >
            <asp:TextBox ID="TxtSalesTax" runat="server" TabIndex="11" MaxLength="50" />
        </div>
              <div >
            <asp:TextBox ID="TxtTin" runat="server" TabIndex="12" MaxLength="50" />
        </div>
                <div>
            <asp:DropDownList ID="DdlBusinessType" runat="server" TabIndex="13" />
        </div>
   

No comments:

Post a Comment