![]() |
|
|
Published: Friday, May 18, 2001 By Scott Mitchell
In Part 2 we looked at the two most important parts to .NET: the CLR and the .NET Framework classes. In this final part, we'll examine how and where ASP.NET fits into the picture!
ASP.NET - Where Does it Fit within .NET? When an ASP.NET page is visited via a Web browser, the ASP.NET engine first checks to see if there already exists an up-to-date version of the IL code for the ASP.NET page. If there does, this IL is squirted to the CLR, and the HTML output generated by the ASP.NET page is then sent to the client's browser that requested the ASP.NET Web page. If, however, the IL does not exist at all or the ASP.NET page's source code has changed since the last IL was generated, the ASP.NET page must be recompiled. Depending on what language the ASP.NET page was written in, the proper compiler is instantiated and the IL created. This IL is saved on disk so that, for future requests, this recompilation, an expensive process, does not need to recur. If you've created ASP.NET pages, you most likely aware of the concept of Web controls. These are controls that can be used in an ASP.NET Web page to produce HTML elements like text boxes, labels, list boxes, etc. For example, to create a text box using a Web control, one can do:
In fact, an ASP.NET Web page can contain a mix of server-side code (in server-side
So how does that HTML/server-side code get translated into something that the VB.NET compiler can understand?
One of the ASP.NET engine's most important tasks is translating the HTML/server-side code into a class that
the VB.NET compiler (or C# or JScript.NET compilers) can understand. This process is a difficult one, and
beyond the scope of this article; however, do be aware that your pages are turned into a class that inherits
from the If you've not worked with ASP.NET, I highly recommend that you download and try it out. As of the time of this writing (May 18th, 2001), it is still only in Beta 1, but Beta 2 is scheduled to come out by this year's TechEd (June 17th). Having been personally using ASP.NET for the past year, I can tell you that ASP.NET is:
You can do some really impressive tasks really easily with ASP.NET, tasks that required hundreds of lines of messy code in classic ASP. To learn more about ASP.NET be sure to read up on the articles listed in the ASP.NET Article Index. Happy Programming!
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||