Click here to Skip to main content
15,908,013 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i have a login page, in that for username and password two text boxes are there, one submit button is there and i write the code for submit button,
but my problem is after entering the username and password if i clicked the enter key it is not navigating to the loggedin page how to write the enter key event.
can anyone help me in my requirement.
Posted

add a button in .aspx as:
ASP.NET
<asp:button id="btnLogin" runat="server" xmlns:asp="#unknown" />

select button go to properties window from there add Onclick event ( or double click this button in design view it will create onclick vent for the button).
In the event you can redirect the control to the page where you want to be after logging in.
such as :
C#
Response.Redirect("~/xyz/BranchReport.aspx")

the thing is that you shoud practice more, these are basic things know,
well be freindly to google and learn basic tutorials.
 
Share this answer
 
v2
Hi, please start on the link below.
HTML Forms
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900