Monday, 28 April 2014

Popup Message in asp.net

public static void DisplayAJAXMessage(Control page, string msg)
    {
        string myScript = String.Format("alert('{0}');", msg);
        ScriptManager.RegisterStartupScript(page, page.GetType(), "MyScript", myScript, true);
    }



 DisplayAJAXMessage(btnsave, "Please Do Not Enter Diplicate Department Name ");

No comments:

Post a Comment