clientside javascript in Pocket Pc2002 and pocket Pc2003

Hi,

I've encountered a strange situation. I'm not sure if this is an expected behaviour. Kindly share your thoughts on it.

The application i'm working on is developed in VS .NET2002 and .Net Framework 1.0. It is an ASP.NET/C# application and is accessed from a mobile device having Pocket PC 2002.

The UI has a main form and 2 input controls (Username and Password) on it. The input controls are in seperate forms inside a table row in the main form.

Only the Password form has runat=server.

When I access the application from Pocket PC 2002 device, enter the username in username field and press enter, only the client side code is executed. The page is posted to the server only when password (which is inside a form having runat = server) is entered and enter is pressed.

But when I access the same application from Pocket PC 2003 device, the page is posted to the server even when I press enter on entering the Username.

Could anybody please help in understanding this scenario

The code looks like:

<form id="Login" onsubmit="this.submit()" method="post">
  <TABLE cellSpacing="0" cellPadding="0" width="240" border="0">

<TR>
    <TD align="center" width="240" colSpan="2"><form id="UserName" onsubmit= return UserName();this.submit()" method="post" name="UserName">
      <font color="#425aad" size="3"><strong>Username:</strong></font><br>
      <input id="txtUserName" type="text" size="15" name="txtUserName">
     </form>
    </TD>
   </TR>
   <TR>
    <TD align="center" width="240" colSpan="2">
     <form id="Password" name="Password" onsubmit=return Password(); this.submit()" method="post" runat="server">
      <TABLE cellSpacing="0" cellPadding="0" width="240" border="0">
       <tr>
        <TD align="center" width="240" colSpan="2"><font color="#425aad" size="3"><strong>Password:</strong></font><br>
         <input id="txtPassword" type="password" size="15" name="txtPassword" runat="server">
        </TD>
       </tr>
       <TR>
        <TD align="left" width="240" colSpan="2"><asp:label id="lblMessage" runat="server" Font-Names="Arial" Font-Size="Small" ForeColor="#C60000"></asp:label></TD>
       </TR>
       <TR>
        <TD align="center" width="240" colSpan="2"><asp:imagebutton id="SignIn" runat="server" height="17" width="65" BorderWidth="0px" ImageUrl="file:///images/Button_Footer_SignIn.gif"></asp:imagebutton></TD>
       </TR>
       <tr>
        <IMG alt="" src="file:///images/Shunt.gif" width="3" height=3>
       </tr>
       <TR>
        <TD align="right" width="240" colSpan="2"><asp:label id="lblVersionNo" runat="server" Font-Names="Arial" Font-Size="Small" ForeColor="#C60000"></asp:label><IMG alt="" src="file:///images/Shunt.gif" width="6"<TD></TD>
       </TR>
      </TABLE>
      <input id="hdnUserName" type="hidden" name="hdnUserName" runat="server">
     </form>
    </TD>
   </TR>



Answer this question

clientside javascript in Pocket Pc2002 and pocket Pc2003