ASP.NET - how aspx page is converted into html at runtime

Asked By selva kumar
03-Feb-12 04:25 AM
Hi,

Could anyone answer how the aspx control (ex. <asp:TextBox id="Textbox1" runat="server" /> ) is gets converted into html control at debugging time?

Thanks in advance.....
  kalpana aparnathi replied to selva kumar
03-Feb-12 04:31 AM
hi,

The easiest way to convert an ASPX page to HTML is to simply request the page via a web server. What you receive in your browser will be HTML - just do a view source.
  Web Star replied to selva kumar
03-Feb-12 04:58 AM
When the code is compiled, the compiler translates your code
into Microsoft intermediate language (MSIL). The common
language runtime includes a JIT compiler for converting this
MSIL then to native code.
MSIL contains metadata that is the key to cross language
interoperability.
when ever our applicatation compile ,msil will be 
generated,it having the metadata infromatin.when jit 
compilter it convert to mechine code and finally it render as html to client browser.
  dipa ahuja replied to selva kumar
03-Feb-12 05:55 AM
For this you have to understand the life cycle of the aspx page

The Life Cycle of a page when requested for the first time:

Initializing: During this phase, the server creates an instance of the server control

Loading: During this phase, the instance of the control is loaded onto the page object in which it is defined.

PreRendering: During this phase, the control is updated with the changes made to it. This prepares the control for rendering.

Saving: During this phase, the state information of the control is saved. For example, if a value is set for the control during the Load event, it is embedded in the HTML tag that will be returned to the browser.

Rendering: During this phase, the server creates the corresponding HTML tag for the control.

Disposing: During this phase, all cleanup tasks, such as closing files and database connections opened by the control are performed.

Unloading: During this phase, all cleanup tasks, such as destroying the instances of server control are performed. This is the final event in the life cycle of a server control


  Somesh Yadav replied to selva kumar
03-Feb-12 07:06 AM
go through the below link


http://www.informit.com/articles/article.aspx?p=1641288&seqNum=2
  Riley K replied to selva kumar
03-Feb-12 08:07 AM


You have to know more about the Page LIfe cycle,

In the life cycle in the event Render the html markup for the control and whole page is created and rendered to the browser

Refer this doc from MSDN

http://msdn.microsoft.com/en-us/library/ms178472(v=vs.80).aspx 

Regards


Create New Account
help
net ADO is designed primarily for connected access ADO.net the disconnected access to the database is used In ADO you communicate with the database by making calls to an OLE DB provider. In ADO.NET you communicate with the database through a data adapter (an OleDbDataAdapter, SqlDataAdapter, OdbcDataAdapter, or OracleDataAdapter object), which makes calls to or the APIs provided by the underlying data source. In ADO you cant update the database from the recordset. ADO.NET the data adapter allows you to control how the changes to the dataset are transmitted to the database. On order to get assembly info which namespace we should import? System.Reflection Namespace How tab”) This will fill the dataset with the records starting at 5 to 15 .NET Database interview questions How do you call and execute a Stored Procedure in.NET? Give an in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this
Life Cycle Want to know about the Life cycle of ASP.net page ASP.NET 2.0 Page Life Cycle - The lifetime of an ASP.NET page is filled with events. A series
What is the life cycle of asp.net Please send the answer for life cycle of asp.net in the point interview mode(How To tell in interview please send the small description mode)(interview mode)(interview mode)(interview mode)(interview mode) Following are the events occur during ASP.NET Page Life Cycle: 1)Page_PreInit 2)Page_Init 3)Page_InitComplete 4)Page_PreLoad 5)Page_Load 6)Control
Migration from ASP to ASP.net How to convert ASP site to ASP.NET site using C# http: / / www.asp.net / downloads / archived-v11 / migration-assistants / asp-to-aspnet hi, ASP.NET framework is very much different from unstrucured ASP and there is no correct way to
me is good example of Cookie. 2. Query string - When you login, on that time page is redirected with some data like this- abc.aspx?id = sdgf@dafshflk this is your query string , which is used for passing data to second page. 3. Session - Used for storing username or other information of user when you login then so that for same request no nedd to go to server. 5. HiddenField- To store page level infomation, like any value. Hope this will help you. So many things you have next time when we logged in then check thsi value and redirect you to home page 2. Session : Session is also store some value , that can be like username or it value. At that time we have to give or attatch some value with the actual page url for ex: Futurebazar.com / Product.aspx ?productId = 1 In the above url the highlighted the value in the url but in hiddendFiled value are stored and passed to second page but that value we cannot see that is passed as hidden value 5. ViewState : ViewState can see we are filling any form and we get the result in the same page. That mean we are not redirected to another page, processing and result is produced in the same page. At this stage ViewState can be