Hello,
I am taking help from your code from
http://aspsnippets.com/Articles/Simple-User-Registration-Form-Example-in-ASPNet.aspx
and when i execute it, it Shows a null exception error referring to cannot insert null values into UserId column in table
pointing at :
userId = Convert.ToInt32(cmd.ExecuteScalar());
You need to make sure the procedure is returning data. The sample is working fine so compare the sample code and SQL with your code and SQL
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.