• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 613
  • Last Modified:

Enter key press

How can I add an event to textbox1? When Enter key is pressed in a webform, I want it to fire an event?
0
VBdotnet2005
Asked:
VBdotnet2005
1 Solution
 
informaniacCommented:
<asp:TextBox id="txt1" runat="server">

<asp:Button id="btn1" runat="server" Text="This button shd be fired" UseSubmitBehavior="true" OnClick="btn2_Click"></asp:Button>
<asp:Button id="btn2" runat="server" Text="Some other button" ></asp:Button>

Open in new window

0
 
VBdotnet2005Author Commented:
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now