posted on Friday, April 16, 2004 11:03 AM
by
demiliani
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! 