|
August 13, 2002 Writing Pages without Code Behind Tips: August 2002
Yehuda Shiran, Ph.D.
|
|
Sometimes, using Code Behind is too complicated for a simple task. You can put your JScript .NET code in the ASP.NET page directly. Here is the Hello World application in one piece, for your reference:
As you can see, the principles are the same. The Page_Load() function is invoked automatically when the page loads. It sets the Text property of the message ID to "Hello World, Code Behind". This ASP.NET file is self-sufficient, and you don't need to import any classes.To learn more about JScript .NET and ASP.NET, go to Column 115, JScript .NET, Part IX: Code Behind.
People who read this tip also read these tips: Look for similar tips by subject: |