Tuesday, April 10, 2012

Showing Messagebox Using Asp.net

VB.Net code.

Dim str As String = "\t\ Showing Message Box"
ScriptManager.RegisterStartupScript(Me, GetType(String), "alert", "alert('" & str & "'); ", True)


C#

string str = "\\t\\ Showing Message Box";
ScriptManager.RegisterStartupScript(this, typeof(string), "alert", "alert('" + str + "'); ", true);

No comments:

Post a Comment