B
Boban Dragojlovic
I have a webform that shows a long list of customers (500 - 1000) to the
user.
At the top of the form are various filtering options, including a quick
search input box.
If you set any filters, you need to click on the 'Filter' button to apply
the filter. In that case the form posts back to the server and performs the
filter.
But the quick search is designed to work easier/faster. If you type
anything into that box, and press tab, it posts back to the server
immediately and performs a search based on the text you entered.
I achieve this by coding these attributes into the quick search textbox:
AutoPostBack="True" OnTextChanged="QuickSearch"
Everything works fine if the user types something and presses Tab.
But, if the user types something into the quick search textbox, and presses
ENTER instead of TAB, then the form posts TWICE instead of once, and I wind
up duplicating data on the screen.
Currently the @Page directive has AutoEventWireup="false"
If I changed that to TRUE, it's even worse (it ALWAYS double posts).
Any ideas?
user.
At the top of the form are various filtering options, including a quick
search input box.
If you set any filters, you need to click on the 'Filter' button to apply
the filter. In that case the form posts back to the server and performs the
filter.
But the quick search is designed to work easier/faster. If you type
anything into that box, and press tab, it posts back to the server
immediately and performs a search based on the text you entered.
I achieve this by coding these attributes into the quick search textbox:
AutoPostBack="True" OnTextChanged="QuickSearch"
Everything works fine if the user types something and presses Tab.
But, if the user types something into the quick search textbox, and presses
ENTER instead of TAB, then the form posts TWICE instead of once, and I wind
up duplicating data on the screen.
Currently the @Page directive has AutoEventWireup="false"
If I changed that to TRUE, it's even worse (it ALWAYS double posts).
Any ideas?