But during submit button, the integer value has to be converted to datetime.
I have written it as:
cmd.Parameters.Add(
"@Max_Limit", System.Convert.ToDateTime(txtMaxLimit.Value).ToShortDateString);It gives me the following errors:
Error 2 The best overloaded method match for 'System.Data.SqlClient.SqlParameterCollection.Add(string, object)' has some invalid arguments
Error 3 Argument '2': cannot convert from 'method group' to 'object'
Please help.......................
Replies
Know the answer? Post it — somebody with the same question will find it here.