Link to home
Start Free TrialLog in
Avatar of mcrmg
mcrmg

asked on

how to pass null in c#?

Hi,

I am trying to pass a null value as string to a function that will send to a sp.

            String v1;
            String v2;
            AssignedName = e.CommandArgument.ToString();
            Activity = null;

            loadActivity(sqlConnection, v1, v2);

Open in new window


I know my sp works. also, if v2 is not null, it works fine. Once I use null, I get the error v2 was not supplied. Any ideas? thanks
ASKER CERTIFIED SOLUTION
Avatar of Dorababu M
Dorababu M
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mcrmg
mcrmg

ASKER

thank you