Creating Understanding and Educating Programmers, Developers and Technical Communities, one post at a time.

Tuesday, October 12, 2010

Debugging ASP.NET Page

You can debug application either on page level or application level.
  • Enable debugging for a page by adding a Debug= "true" attribute to the <%@ Page %> directive.
  • Enable debugging for entire application by adding <compilation debug = "true"> in configuration/system.web/ withing web.config file.


The Page class includes a property called the IsPostBack property, which you can use to detect weather the page has already been posted back to server.