If you want to show msg if you are posting the page to server through update panal (asynchronous postback) then you have to use this function.
//During Asynchronous Post Back in Update Panal Use ScriptManager (Inside Update Panal)public void alertBox(string Message){ScriptManager.RegisterStartupScript(Page, this.GetType(),"Key", string.Format("alert('{0}');", Message), true);}If you want to show message in browser and want to show it through javascript (alert function)then use this function.
//...
This blog related to all the experience that i gain and face during past career. It covers Microsoft technology like. Microsoft Dot Net, SQL Server, Scripting Language etc,.
Pages
Sunday, November 18, 2012
ASP.NET show alert message from server side
Read More »
Subscribe to:
Posts (Atom)
My Blog List
-
-
-
-
Kumaon University Nainital B.Ed entrance exam test result 2012 - कुमाऊँ विश्वविधालय, नैनीताल (उत्तराखण्ड)11 years ago