
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. ASP.NET pages implement JavaScript in an application either for validation purposes or visual ones. The language is still very functional, and has a lot of capabilities, especially with the advent of DHTML. JavaScript can still be added to an ASP.NET page within the HTML code, or can be added in the server-side code. To render it server-side, don't use the Response.Write method.
|