i have created a function and want that it call on aleart meassage ok button
my code is this please tell me where i am wrong
int totalSeconds = 0;
int seconds = 0;
int minutes = 0;
int hours = 0;
string t = "";
public void calc()
{
Panel1.Visible = true;
Button1.Visible = false;
}
protected void Timer1_Tick(object sender, EventArgs e)
{
Session["time"] = Convert.ToInt16(Session["time"]) - 1;
if (Convert.ToInt16(Session["time"]) <= 0)
{
time.Text = "TimeOut!";
// this.Title = "TimeOut!";
// insert_result();
//this.calc();
// Response.Redirect(Request.RawUrl);
// string script = "alert('TimeOut!');";
//System.Web.UI.ScriptManager.RegisterClientScriptB ...
Go to the complete details ...