Results 1 to 7 of 7

Thread: Set focus

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2004
    Posts
    94

    Re: Set focus

    Sorry, it's a long time ago but I become a father meanwhile...

    I fill in the tabindex (login, password, persistent cookie and submit button), but it still goes to the address bar

    Here's the HTML :

    <body>
    <form id="Form1" method="post" runat="server">
    <H1 align="left"><FONT size="7"><IMG src="Images/PROFORTRA.jpg"></FONT></H1>
    <H1 align="left"><FONT size="7">Welcome</FONT></H1>
    <H2 align="left">To access this site you have to log on first.</H2>
    <P>
    <TABLE class="TABLE" id="tlbLogin" style="WIDTH: 560px; HEIGHT: 130px" cellSpacing="1"
    cellPadding="1" width="560" border="0">
    <TR>
    <TD style="WIDTH: 91px">Username
    </TD>
    <TD><asp:textbox id="UserName" tabIndex="1" runat="server" BackColor="LightGray" Width="160px"></asp:textbox>&nbsp;<asp:requiredfieldvalidator id="reqUserName" runat="server" ErrorMessage="Username is required !" ControlToValidate="UserName"></asp:requiredfieldvalidator></TD>
    </TR>
    <TR>
    <TD style="WIDTH: 91px">Password</TD>
    <TD><asp:textbox id="PassWord" tabIndex="2" runat="server" BackColor="LightGray" Width="160px" TextMode="Password"></asp:textbox>&nbsp;<asp:requiredfieldvalidator id="reqPassWord" runat="server" ErrorMessage="Password is required !" ControlToValidate="PassWord"></asp:requiredfieldvalidator></TD>
    </TR>
    <tr>
    <td>Persistent Cookie</td>
    <td><ASP:CHECKBOX id="Persist" tabIndex="3" runat="server"></ASP:CHECKBOX></td>
    </tr>
    </TABLE>
    </P>
    <P><asp:label id="lblFout" runat="server" ForeColor="Red" Font-Size="Medium"></asp:label></P>
    <P><asp:button id="btnLogOn" tabIndex="4" runat="server" Text="Log On"></asp:button></P>
    </form>
    </body>

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: Set focus

    First off - congratulations!

    Secondly - does this happen in all browsers?

    DJ

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2004
    Posts
    94

    Re: Set focus

    Thx !

    Since I'm just starting, I just try it on my notebook with IE (version 6.0.2900.2180).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width