I have another absurdly (and seemingly) simple bug that I have been trying to solve for over an hour with no luck.
I have another search function that contains two text field inputs: zip code and name. If you enter a zip code you can search by clicking the 'search' button or by clicking enter. However, if you enter a value in the 'name' field you have to click the button, 'enter' will not execute the search.
I figured that by comparing the code for the two inputs I would be able to find the solution - No so much! I have search the search control, the BLL referenced in the search string and much, much more. I've also tried using the properties explorer and have not been able to find any differences in the two searches.
I've continued to research this further and found that it could be that I need to assign the "defaultbutton" property. Apparently I have to redesign the search layout to use multiple <asp: panel> tags to achieve multiple default buttons.
I also discovered the if I have a value in the 'zip code' field and a value in the 'name' field it will work when I click enter. Not sure if that means anything...
This sounds like a problem at the application layer. If you feed that the prpblem extends to SQL Server - you can use SQL Server Profiler to identify code running - which can assist in troubleshooting
I've continued to research this further and found that it could be that I need to assign the "defaultbutton" property. Apparently I have to redesign the search layout to use multiple <asp: panel> tags to achieve multiple default buttons.
I also discovered the if I have a value in the 'zip code' field and a value in the 'name' field it will work when I click enter. Not sure if that means anything...
Either that, or you will need to add an event handler to the default button to process the data to handle both cases.
But, like others pointed out, this forum is for SQL Server related questions/discussions; so you are likely get faster/better responses at an Asp.net forum.