Pop-up from code behind

By steve, 27 February, 2012

To get a pop-up to appear in .NET from the code behind, you can do the following:

ScriptManager.RegisterStartupScript(this, this.GetType(), "alertName", string.Format("javascript:alert('Message to display with argument {0}')", argument1), true);

Tags

Comments