Jump to content

Cannot press enter on form. Why?


joecool2005

Recommended Posts

Hi,On the following code

<html><head><script runat="server">	Sub searchSin(ByVal sender As Object, ByVal e As EventArgs)		Response.Write(myText.Text)	End Sub </script></head><body><form id="form1" runat="server"><asp:TextBox id="myText" runat="server" MaxLength=11/><asp:Button id=Button1 runat="server" Text="submit" OnClick="searchSin"/></form></body></html>

When I type in the field and press "Enter" immediately, it does not work. I have to use my mouse and click on the button.Do you know why I can not press "Enter"?Thx

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...