Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

search engine form is not working with "Enter" hit

Status
Not open for further replies.

neomax

Programmer
Jul 1, 2006
29
BG
Hi, everybody1

I have search engine is working if it submitted by click the button, but not by hit the "Enter" on keyboard
What is the reason, ? Im newbie in ASP.NET, please help me take action and fix it.
 
<form name="form1" id="form1" method="post" runat="server">
<asp:textbox Columns="30" ID="txt34" MaxLength="25" runat="server" />
<asp:button ID="btnSearch" runat="server" Text="Search" onclick="search_Buttonclick" />
<br>
<asp:radiobutton id="rad1" CssClass="smal" Checked="true" runat="server" text="Any" GroupName="conn" />
<asp:radiobutton id="rad2" text="All" CssClass="smal" GroupName="conn" runat="server" />
<asp:radiobutton id="rad3" text="Exact Phrase" CssClass="smal" GroupName="conn" runat="server" />
</form >
 
If you put this right before your textbox it should make the enter key work.

<input type="text" style="display:none">

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top