Pages

Ads 468x60px

Labels

Thursday, January 31, 2013

Prerequisites




   

   One really useful piece of information here is the view state size you can tell which controls may be using more than their fair share of view state but the river size indicates just how much room the control is taking up on the page in other words how much data is being sent to the client if you session state and application states are cookies and so forth needed that information.

        Is next several sections and then you can also take a look at the complete headers collection is of the HTTP headers to be doing any kind of header manipulation you can check to make sure that everything is working the way you intend to look at the response headers and then any variables that are used within the application form collection gray string collection as well as all of the server variables that are being passed back and forth between the server and the client application.

        The amount of information we get our trace is almost staggering is just a wealth of information about how the Web server is interacting with the browser for this particular page in fact the information is so broad and so useful that can be very illuminating as your learning ASP.net to enable tracing for all the pages as you develop them and then you can get an idea of how ASP.net is doing his job.

        In order to generate webpages from the pages that you design within Visual Studio the default trace page displays various predefined information about the webpage but you're not limited to that information you can add your own information using the trace context class one of many support classes within the system. Diagnostics namespace that lets you add customized information which makes that trace.

        even more useful for debugging problems that you find within your particular page for example you could display values of method variables to get a snapshot of state an instance of the trace context class is exposed through the trace property of the HTTP context class which is then mirrored by the trace property of the page class C of various ways of getting access to this object.

        The trace context class features both right and worn methods worn differs from right in that renders its text output in red both of the right and worn methods have several overloads with matching signatures one takes a single string parameter another takes two strings in the third takes to strings and an exception to the first overload takes a single parameter which allows you to specify the message: the second exception both the name of the category of message as well as the message itself and on the third load.

        As an extra exception object in case the message traces and air so single look at how you can add your own information to the trace page is the code behind the default.aspx page the page has a link button called page tracing this is a click event procedure.

0 comments:

Post a Comment

 

Sample text

Sample Text

Total Pageviews