First of all you create one procedure in sql.
Then by following code we’ll use the stored procedure in ASP.NET. The main advantage of using stored procedure in ASP.NET is that it is fast and we hide the SQL queries in programming.
SqlConnection con;
SqlCommand cmd = new SqlCommand();
con = new SqlConnection(“server=””;uid=sa;pwd=””;database=product”);
cmd = new SqlCommand(“Procedurename”, con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(“@name”, SqlDbType.VarChar).Value = TextBox1.Text; //1st parameter to proc
cmd.Parameters.Add(“@passwd”, SqlDbType.VarChar).Value =TextBox2.Text; //2nd parameter to proc
cmd.Parameters.Add(“@email”, SqlDbType.VarChar).Value = TextBox4.Text; //3rd parameter to proc
con.Open();
cmd.ExecuteNonQuery();
con.Close();
Best of luck………..