ASP.NET Tip to bookmark (for me)

Thanks to M. Keith Warren, I want to bookmark on my Blog this little ASP.NET tip that could be return useful...

HOWTO: Push a javascript alert using server side code

protected virtual void MessageBox(string message)
{
     RegisterStartupScript(
                           
System.Guid.NewGuid().ToString(),
                           
string.Format("<script language='javascript'>alert('{0}');</script>", message));
}

Good!

Print | posted on Friday, April 16, 2004 5:03 AM

Comments on this post

# re: ASP.NET Tip to bookmark (for me)

Requesting Gravatar...
Please HtmlEncode that. Security.
Left by Henry Erich III on Apr 16, 2004 6:02 AM

# re: ASP.NET Tip to bookmark (for me)

Requesting Gravatar...
????WEB ???????

good! thank you !
Left by 11 on Jun 19, 2004 12:10 AM

Your comment:

 (will show your gravatar)
 
Please add 8 and 8 and type the answer here: