Friday, 15 July 2011

Redirect after alert message

 public void showmessage(string msg, string pageName)
        {
            ScriptManager.RegisterStartupScript(this, GetType(), System.Guid.NewGuid().ToString(), "alert('" + msg + "');window.location='" + pageName + ".aspx';", true);
        }

No comments:

Post a Comment