Using the Page Inspector feature

Page Inspector is a tool that renders our pages in our Visual Studio 2012 IDE and lets us examine the source code and its output. It is great to determine which piece of code has produced a specific HTML markup code.

Getting ready

In order to use this recipe you should have Visual Studio 2012.

How to do it...

In this section we are going to see how to use the Page Inspector to inspect a page along with its styles.

  1. Open our previous ASP.NET application.
  2. Right-click on the Books.aspx page and select the View in Page Inspector option.
  3. Once the Page Inspector panel opens, click on the Inspect button at the bottom of the rendered page and click on the Categories selector. The bottom section should showcase the rendered HTML; ...

Get Microsoft .NET Framework 4.5 Quickstart Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.