and below it i hav
Username -- textbox
Password --textbox
Login --image button...
now after a user hav filled the password box and when he press the enter key then the 'Login' should fire..... but this button is not firing in my case....
the first button is fired i.e Home button is fired...
can u plz xplain....
note:-
i have added a OnclientClick= return validateuser() in the <asp:imgbutton> tag and in the <script> tag i have written the following code for checking if the username and password box are not left blank...like this.....
Expand|Select|Wrap|Line Numbers
- if(document.getElementById('<%= txtUsername.ClientID%>').value == "")
- {
- alert('Please enter username');
- document.getElementById('<%= txtUsername.ClientID%>').focus();
- return false;
- }