(Brian Mains) JavaScript can be dynamically added to ASP.NET pages within the code-behind page or through a custom control. Each has the ability to do this through methods defined in the Page class, RegisterClientScriptBlock and RegisterStartupScript.
Read More - Register for Free Membership