Slide 3 of 27
Developing Web Applications Using ASP.NET
Client–side script can be added to an ASP.NET page byusing
tags, without the
attribute.Client-script generated by ASP.NET controls does notinterfere with any script added using
tag.You can also add client-side script to a page by usingserver-side code.Creating client script in server code is useful when:
Contents of the client script depend on information that is notavailable until run time.The client script needs to be executed when the page finishesloading.The client script needs to be executed when users submit thepage.
The Page Scripting Object Model (Contd.)