Hi
Can you help me with the this challenge:
I have a search textbox in a master page (and thus on every page in the site).
What I would like to do is to have a border appear around the image submit button as soon as any text
is entered in the search box. Can you suggest how to accomplish it client side?
Can I use the WineListTextBox_TextChanged event?
The declaration is :
and there is a button click handler in code behind.
In case you are wondering, it is because there some visitors who insist on hitting the keyboard 'enter' key to submit instead of clicking the beautiful (but small) arrow button.
Thanks!
Clive
Can you help me with the this challenge:
I have a search textbox in a master page (and thus on every page in the site).
What I would like to do is to have a border appear around the image submit button as soon as any text
is entered in the search box. Can you suggest how to accomplish it client side?
Can I use the WineListTextBox_TextChanged event?
The declaration is :
<telerik:RadTextBox ID="WineListTextBox" Runat="server" |
EmptyMessage="Wine list search" Skin="Black" Width="125px" |
ForeColor="#A49261" style="background-color:#333333" onkeydown="return(event.keyCode!=13);"> |
EmptyMessageStyle HorizontalAlign="Left" PaddingLeft="3px" /> |
</telerik:RadTextBox> |
<asp:ImageButton ID="WineListButton" runat="server" ImageAlign="Right" |
ImageUrl="~/images/buttons/rt-arrow.gif" CausesValidation="False" /> |
and there is a button click handler in code behind.
In case you are wondering, it is because there some visitors who insist on hitting the keyboard 'enter' key to submit instead of clicking the beautiful (but small) arrow button.
Thanks!
Clive