if (i != 1)
{
Label16.Text = ("Data Saved");
Response.Redirect("Default2.aspx");
}
Shouldn't that be
if (i == 1)
?
If this is not the problem, you should show us how
"sp_insert"
is defined. From the name I would expect that it is an
INSERT
command where usually all fields are provided while the parameters set in your code indicate that you want to execute an
UPDATE
command.