Member_2_7966896
asked on
jqGrid custom search filters - Null being allowed
Hello!
I was hoping if someone can help me understand how to have one or multiple parameters to be null and still execute the search with whatever filter options is chosen.
At the moment I have TWO dropdowns:
lets say both parameters are filled, it executes with no issues. But when one is blank it will shoot me an error telling me:
depends on which one is left blank.
Thank you!
I was hoping if someone can help me understand how to have one or multiple parameters to be null and still execute the search with whatever filter options is chosen.
At the moment I have TWO dropdowns:
url: "/DataService/Webservice2.asmx/filter?d=" + d+ "&n=" + n,
lets say both parameters are filled, it executes with no issues. But when one is blank it will shoot me an error telling me:
Conversion from string "" to type 'Integer' is not valid.^ that error is shown in the webservice:
Dim n As Integer = HttpContext.Current.Request.QueryString("n")
or Dim d As String = HttpContext.Current.Request.QueryString("d")
depends on which one is left blank.
Thank you!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER