Sunday, April 12, 2009

JavaScript alert from UpdatePanel in ASPX (C#)

public void ClientMsg(string MsgTxt)
    {
        ScriptManager.RegisterClientScriptBlock(
        this.Page, 
        this.Page.GetType(), 
        "clientScript", 
        "alert('" + MsgTxt + "')", 
        true);
    }