Translate

> | > ASP.NET C# Popup MessageBox

ASP.NET C# Popup MessageBox

Posted on Tuesday, June 26, 2012 | 1 Comment

 public static void ShowAlertMessage(string error)
        {
            Page page = HttpContext.Current.Handler as Page;
            if (page != null)
            {
                error = error.Replace("'", "\'");

                ScriptManager.RegisterStartupScript(page, page.GetType(), "err_msg", "alert('" + error + "');", true);
            }
        }

Comments:1

  1. The Kettic Message Box Control is able to show text, buttons, and symbols that inform and instruct the user as well as system icon, status, and error information.

    ReplyDelete

Powered by Blogger.