hello friends i face one issue for load the data to grid view.
the page load event call the one method like loaddata() inside i write the code this
usi
If you are calling a stored procedure, in addition to the NULL
issue someone mentioned above, there is a type mismatch issue. For instance I was getting the "Expects parameter that is not supplied" error, when I was supplying the parameter.
After pulling my hair out for a while I found that the procedure had an input parameter of nvarchar(50)
and I was passing a string that was longer than that. Apparently any kind of mismatch is reported the same as not providing (which in a way I suppose it is).
So you may want to double check data types and sizes on both ends.
The following parameters don't have default values in your stored proc:
@DateEmailed datetime,
@DateResponded datetime,
So you always need to provide those values in the code:
cmd.Parameters.Add(new SqlParameter("@DateEmailed", SqlDbType.DateTime));
cmd.Parameters["@DateEmailed"].Value = DateTime.Now; // Provide your value here
cmd.Parameters.Add(new SqlParameter("@DateResponded", SqlDbType.DateTime));
cmd.Parameters["@DateResponded"].Value = DateTime.Now; // Provide your value here