Hey,
I have a text box I use for search, and it's a bit annoying. If somebody types in a phrase and presses return, it does indeed work and shows the results they searched for (async). However, if they then click out of the search box (causing it to lose focus),
it re-runs the search.
<asp:TextBox ID="txtSearch" Text="__(\>/¬!+£\</$%^&!*)" OnTextChanged="SearchText_TextChanged" EventName="TextChanged" AutoPostBack="True" runat="server" />
However I like the feature of it doing a postback when it loses focus, but only on the condition they haven't also pressed return.
Basically, I want to avoid the double postback - once on pressing return and again on clicking out of the text box.
Thanks
Full code for the search function:
<div ID="search">
<asp:Timer ID="tmrSearch" OnTick= ...
Go to the complete details ...