Weird ASP/SQL Problem
Consider the following HTML Form, it has a textbox and a search button.
The search.asp page:
if I put this query in the search.asp page then it will search by name based on the name I entered in the textbox. But if I leave the textbox empty and click on the search button, SQL fetches all the rows from the table. If you havent noticed this before, try it now!!
Well, this is not my problem/question. my question is if I place a combo box instead of the textbox and assign a NULL value to one of the option field like:
and press the search button, then it does not fetch all the rows as it did for the empty textbox.
Any idea why?