Is this possible to send a DB null to a integer variable.
I’m calling a function
private void BindGridView(String Fromdate, String Todate, int IsPending)
- fromdate
- todate
- ispending is my stored procedure scalar variable
On pageload I show the both detail (ispending or not pending). For this I need to pass null.
Is there need to change the signature of function?
Make the int parameter nullable, then check for a value when calling your sproc:
and then