I
Imran Aziz
Hello All,
I have an option of search on my web page coded as under
<p>Search Bookmarks: <asp:TextBox ID="txtSearch" runat="server"
class="texta" ></asp:TextBox><asp:Button ID="btnSearch" runat="server"
class="button" Text="go" OnClick="btnSearch_Click" UseSubmitBehavior="true"
/></p>
Now the issue is that although it works fine when the button is pressed, but
when someone enters text in the textbox and presses enter it does not do
anything, because the buttons OnClick event is not fired. How can I
associate the textbox with the button control, so that when someone does an
enter in the textbox then the buttons OnClick handler is called?
Imran.
I have an option of search on my web page coded as under
<p>Search Bookmarks: <asp:TextBox ID="txtSearch" runat="server"
class="texta" ></asp:TextBox><asp:Button ID="btnSearch" runat="server"
class="button" Text="go" OnClick="btnSearch_Click" UseSubmitBehavior="true"
/></p>
Now the issue is that although it works fine when the button is pressed, but
when someone enters text in the textbox and presses enter it does not do
anything, because the buttons OnClick event is not fired. How can I
associate the textbox with the button control, so that when someone does an
enter in the textbox then the buttons OnClick handler is called?
Imran.