asp.net - How to return all records for Gridview select command parameter -
Use asp.net Select the command in gridview, how can I select all records including blank for a specific area? I have a parameter that changes with the dropdown selection. I have a default list item which is set to% but this will not bring the records with spaces. I tried to do this: where ('@submit' like '%' And user_submit @ login or user_submit IS is tap) or (@ login not '%' and @ submit as user's name)), but or both are getting blank records in the edges of the statement. I also tried a case statement but did not understand how to select both% and 'null'.
If I am wrong in the right way, then I think that you want to select based on criteria , But if there is also a value of zero in the field.
Something like this should work for you
Whatever '%' or anything which is empty with Table_1