I am trying to get data returned from my stored procedure. This is what I have tried and absolutely nothing is coming back.
Stored Proc:
Declare @Submit_
First add parameter to cmd and use .Value to its value
cmd
.Value
cmd.Parameters.Add(pSub); // add parameters to command cmd.ExecuteNonQuery(); subid = Convert.ToInt32(pSub.Value); // Use .Value