Return to Snippet

Revision: 4020
at October 17, 2007 07:08 by nanosoft


Initial Code
private void Alert(string Message)
    {
        string strScript = "<script language=JavaScript>alert(\"" + Message + "\");</script>";

        if (!ClientScript.IsStartupScriptRegistered("clientScript"))
        {
            ClientScript.RegisterClientScriptBlock(this.GetType(), "clientScript", strScript);
        }
    }

Initial URL

                                

Initial Description

                                

Initial Title
Message Box for ASP.NET 2.0

Initial Tags

                                

Initial Language
C#