mcourier
November 17th, 2004, 12:12 PM
We have a page with a textbox that is used for search criteria. There are two buttons on the page, one to activate the search with whatever was typed into the textbox and the other to retrieve all results. The results are displayed in a datagrid.
The code works perfectly if the buttons are used to activate the searches. The problem is when the user hits enter in the textbox. There is a piece of javascript that will activate the correct search button.
When stepping thru this code everything appears to be loaded correctly, we have the correct data bound to the grid control, however when it displays in the browser we don't have the correct data.
Basically, the enter key is triggering the event and we are processing the correct methods, but the data displayed is the previous search results IF those results were generated using one of the buttons to activate the search.
Anyone have any ideas?
The code works perfectly if the buttons are used to activate the searches. The problem is when the user hits enter in the textbox. There is a piece of javascript that will activate the correct search button.
When stepping thru this code everything appears to be loaded correctly, we have the correct data bound to the grid control, however when it displays in the browser we don't have the correct data.
Basically, the enter key is triggering the event and we are processing the correct methods, but the data displayed is the previous search results IF those results were generated using one of the buttons to activate the search.
Anyone have any ideas?