----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Mahesh ChandraMouli Message 13 in Discussion Hi all here I am just putting a example to understand how it asp.net works, and what internal operations it does during its execution. <html> <script runat="server" language="vb"> Sub ShowNumbers() Dim I As Integer For I = 0 To 5 Response.Write(I) Next End Sub </script> The date and time: <% =Now() %> <hr> Some numbers: <% ShowNumbers() %> </html> Accessing the page through ASP.NET results in a completely different execution process. ASP.NET applications are .NET Framework applications, which means that they're based on the Common Language Runtime (CLR). Because of this, every .aspx page is automatically turned into a class the first time it's accessed by a client. This new class inherits from a standard Page class defined by the .NET Framework class library, and different pieces of the .aspx page's contents are inserted into this class in different places. For instance, any code contained within <script> elements is inserted into the class itself. In this case, the page's simple ShowNumbers method becomes a method in the generated class. The rest of this page, including any text, HTML tags, and code wrapped in "<% . . . %>", gets dropped into a single method called Render in this class. The class is then compiled and packaged into an assembly, the container used by .NET to hold compiled code. Once this assembly has been created, it's used to handle all future requests for this page. If the page is changed, the process happens again and a new assembly is generated. ASP.NET uses an event-driven model. When a page is accessed, the assembly generated from that page is executed, and an instance of that assembly's page class is created. This page object receives a series of events, such as Render. Each event is handled by an appropriate method; so, for example, the Render method handles the Render event, allowing a page to display some or all of its output. Code in the .aspx page can also contain methods that handle these events, and each of those methods can produce output that gets sent to the client's browser. Once all events have been handled, the page object is destroyed. ASP.NET provides much more than the original ASP, but to do this, it adds complexity. In fact, using ASP.NET effectively really requires understanding the CLR because all code must be written in a CLR-based language such as VB.NET or C#. >From this u might have a clear knowledge how the execution flow, I have also a ppt of >asp.net execution process check it out. I also have some docs related asp.net internals i will share with you guys.. i will upload in the documents section. Regards Mahesh View Attachment(s): http://groups.msn.com/bdotnet/_notifications.msnw?type=msg&parent=1&item=2499 ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
