TipsOnLips.net

Your .net tips and tricks source

About the author

Author Name is someone.
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010


ASP.NET Response.Write and Ajax ScriptManager.RegisterStartupScript

To show a message box from the ASP.NET page code behind, we could try to ways:

  1. When no Ajax is used:

    • Response.Write("<script>alert('The Class has been created.');</script>");

  2. When Ajax is used:

    • ScriptManager.RegisterStartupScript(this, this.GetType(), "Key", String.Format("alert('The {0} Class has been approved.');", Detail.Title), true);


Categories: Ajax | ASP.NET | JavaScript
Posted by Admin on Saturday, March 07, 2009 8:57 AM
Permalink | Comments (0) | Post RSSRSS comment feed
Comments are closed