0

hi...
i want to display an alert message when the timer.tick even occurs....

protected void Timer2_Tick(object sender, EventArgs e)
        {
            Timer1.Enabled = false;
            System.Web.HttpContext.Current.Response.Write("<SCRIPT LANGUAGE=\"JavaScript\">alert(\"30 Seconds up. Exporting to Library\")</SCRIPT>");
            Response.Write("<script language=javascript>alert('30 Seconds up. Exporting to Library');</script>");
            ClientScript.RegisterStartupScript(this.GetType(), "MyKey", "alert('30 Seconds up. Exporting to Library ');", true);
            ClientScript.RegisterClientScriptBlock(this.GetType(), "MyKey", "alert('30 Seconds up. Exporting to Library ');", true);
        }

The above is what i've tried so far...
none of the above give out an alert message....
i think it's because there is no response happening during the event...
how do i force the page to throw an alert.....

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by arjunpk
0

If i'm right...
i have to force a postback for the alert message to show up...
how do i do it....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.