From the course: ASP.NET Web Forms Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Tracing - ASP.NET Tutorial
From the course: ASP.NET Web Forms Essential Training
Tracing
- [Instructor] One way to get a better understanding of what happens with a page is to use something called tracing. And we have two different levels where we can do tracing. We can do at page level or we can do it at application level. So let's see first at page level. I can go here and in the page directive, I can just go in and add Trace. And then the value it can take it's true or false, so if I say trace equals true, then when I run the application, it will automatically show me a list of all the events that are happening while I'm running this particular page. So if I look in here I can see that I got first the PreInit, and the Init, and the InitCompleted. Then we get the preloaded, loaded, and load complete, pre-render, safe state and render. Of course, we get information about all the controls and the control trees, how the controls are actually placed inside this particular page. We get information about session application, if we have any cookies and so on. So everything is…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.