This is my MySQL stored procedure.
create procedure InsertIntotblStudentProc (PStudentId VARCHAR(10), PStudentName VARCHAR(10))
begin
insert into tblStudent (StudentId, StudentName) values (PStudentId, PStudentName);
end;
Here's my ASP code.
`MySqlCommand cmd = new MySqlCommand("InsertIntotblStudent", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("PStudentId", TextBox1.Text);`
I stopped here as I want to call procedure with two parameters and my other parameter is in TextBox2.
Help me with suggestions.