|
August 26, 2002 Client-Side vs Server-Side Scripting Tips: August 2002
Yehuda Shiran, Ph.D.
|
|
In ASP.NET pages, JScript .NET functions and variables should be defined within <SCRIPT> blocks, while executable code must be enclosed within <% %> blocks. This is very different from the way you code JavaScript on the client side. Client-side JavaScript allows placing of executable code anywhere inside <SCRIPT> blocks.
The following ASP.NET page demonstrates the separation of function definitions and executable code. The function
To learn more about JScript .NET and ASP.NET, go to Column 116, JScript .NET, Part X: Displaying Information.
People who read this tip also read these tips: Look for similar tips by subject: |