after insert i need to show the message as
Label25.Text = "Attendance Saved Sucessfully"; and clear the label and refresh the page
protected void Button1_Click(object sender, EventArgs e)
{
try
{
Session["Intime"] = txttimein.Text;
status();
string insqr = "insert into aten(Id,Name,Status,Section,Intime,Date) values ('" + TextBox3.Text;
insqr += "','" + TextBox1.Text;
insqr += "','" + stat;
insqr += "','" + TextBox2.Text;
insqr += "','" + txttimein.Text;
insqr += "','" + Label24.Text;
insqr += "')";
mvl.Insert(insqr);
string mm = Convert.ToString(insqr);
if (mm != "")
{
clear();
setda();
grdinsert();
getss();
absentss();
Label25.Text = "Attendance Saved Sucessfully";
Label25.ForeColor = System.Drawing.Color.Lavender;
// Response.AddHeader("REFRESH", "5");
// clearControls();
}
}
catch (Exception)
{
}
Label25.Text = "";
}