asp.net
-
how to display message in Message box in asp.net with c#
-
how to display message in Message box in asp.net with c#
-
how to display message in Message box in asp.net with c#
Here is a simple procedure that dynamically builds a Javascript
Alert
Message and writes it to the client usingResponse.Write
. you can use this procedure by adding it to thecode-Behind
. This would be useful when you do aserver-side validation
and want to prompt a alert message to the user.protected void MessageBox(string strMsg)
{
string strScript = "<script language=JavaScript>";
strScript += "alert('" + strMsg + "');";
strScript += "</script>";
Response.Write(strScript);
}- Regards -
J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
-
how to display message in Message box in asp.net with c#
Page.ClientScript.RegisterStartupScript(Page.GetType(), "@msg", "alert('Message that u want to display...');", true);
Jintal Patel