Posted By

nanosoft on 10/17/07


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

umang_nine
emregulcan


Message Box for ASP.NET 2.0


 / Published in: C#
 

  1. private void Alert(string Message)
  2. {
  3. string strScript = "<script language=JavaScript>alert(\"" + Message + "\");</script>";
  4.  
  5. if (!ClientScript.IsStartupScriptRegistered("clientScript"))
  6. {
  7. ClientScript.RegisterClientScriptBlock(this.GetType(), "clientScript", strScript);
  8. }
  9. }

Report this snippet  

You need to login to post a comment.