Hi All,
I'm Developing onlineExam portal Page Here i have Small Doubt .in the login page i Design username and password And Submit button. here i',m placed Small problem When User Entered her user id and Password after click the Enter button login Successfully.
how to call to enter key in submit button


Rahul PrajapatRank #1,209 · 1.5K reputationPosted Jun 20, 2015, 2:26 AM EDT
{
BtnEnter_Click(sender, e);
}
Sabyasachi MishraRank #889 · 2.4K reputationPosted Jun 20, 2015, 2:58 AM EDT
Sabyasachi MishraRank #889 · 2.4K reputationPosted Jun 20, 2015, 2:05 AM EDT
Venkata SubbareddyRank #2,083 · 691 reputationPosted Jun 20, 2015, 2:07 AM EDT
Rahul PrajapatRank #1,209 · 1.5K reputationPosted Jun 20, 2015, 2:09 AM EDT
{
{
BtnEnter_Click(sender, e);
}
Venkata SubbareddyRank #2,083 · 691 reputationPosted Jun 20, 2015, 2:19 AM EDT
The type or namespace name 'KeyEventArgs' could not be found (are you missing a using directive or an assembly reference?)
I got this type of error
Venkata SubbareddyRank #2,083 · 691 reputationPosted Jun 20, 2015, 2:42 AM EDT
Rahul PrajapatRank #1,209 · 1.5K reputationPosted Jun 20, 2015, 2:52 AM EDT
Venkata SubbareddyRank #2,083 · 691 reputationPosted Jun 20, 2015, 2:59 AM EDT
Sabyasachi MishraRank #889 · 2.4K reputationPosted Jun 20, 2015, 3:05 AM EDT
<form id="form1" runat="server" defaultbutton="Button1">
<asp:Button ID="Button1" runat="server" Text="Button"
OnClick = "Button1_Click" />
<asp:Button ID="Button2" runat="server" Text="Button"
OnClick = "Button2_Click" />
<asp:Button ID="Button3" runat="server" Text="Button"
OnClick = "Button3_Click" />
<asp:TextBox ID="TextBox1" runat="server">asp:TextBox>
form>
this.Form.DefaultButton = "Button1";
Venkata SubbareddyRank #2,083 · 691 reputationPosted Jun 20, 2015, 3:07 AM EDT
Sabyasachi MishraRank #889 · 2.4K reputationPosted Jun 20, 2015, 3:08 AM EDT
Jaipal ReddyRank #588 · 4.1K reputationPosted Jun 20, 2015, 3:39 AM EDT
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) { e.Handled = true; button1.PerformClick(); } }Manoj BhoirRank #599 · 4K reputationPosted Jun 20, 2015, 6:57 AM EDT
Debendra DashRank #200 · 12K reputationPosted Jul 3, 2015, 5:47 AM EDT
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Jul 3, 2015, 5:03 PM EDT
Submit Form on Enter Key press in ASP.Net - ASPSnippets
Capturing the Enter key to cause a button click - CodeProject
Rohan GuptaRank #2,588 · 539 reputationPosted Jul 20, 2015, 4:03 AM EDT