Author: LazyAssCoder
Posted: 5/17/2007
In ASP.NET 2.0, use the methods RegisterClientScriptBlock and RegisterStartupScript in the ClientScript object to register your JavaScript.
ClientScript.RegisterClientScriptBlock(this.GetType(), "SayHello", "alert('Hello
Lazy Ass Coder');", true);
ClientScript.RegisterStartupScript(this.GetType(), "SayHello", "alert('Hello
Lazy Ass Coder');", true);
No comments:
Post a Comment