G
Guest
I have two forms on a page, one for logging in a user and a second one to
search thesite. The problem is, when i enter data into the search and hit
enter, it activates the login button. I need to know how to associate a
textbox with a particular button.
<asp:TextBox ID="keyword" Runat=server ></asp:TextBox>
<asp:imagebutton OnCommand="runSearch" id="runbutton" Runat=server />
so when the focus is on keyword and I hit enter, it will run "runSearch" and
not other command on other buttons.
Cheers
Rob
search thesite. The problem is, when i enter data into the search and hit
enter, it activates the login button. I need to know how to associate a
textbox with a particular button.
<asp:TextBox ID="keyword" Runat=server ></asp:TextBox>
<asp:imagebutton OnCommand="runSearch" id="runbutton" Runat=server />
so when the focus is on keyword and I hit enter, it will run "runSearch" and
not other command on other buttons.
Cheers
Rob