Chapter 1

1 The page shown in this listing is similar to the code that ASP.NET will generate when it parses your page. Steps have been taken to simplify some of the details for the purpose of presentation, but conceptually it is identical to the code generated by ASP.NET. If you would like to view the actual code that ASP.NET produces for any given page, do the following:

1. Add Debug=“true” to your @Page directive.

2. Place <%= GetType().Assembly.Location %> somewhere on your page.

This will print the location of the assembly generated for your page. If you go to that directory, you will also see source code files (*.cs or *.vb) that contain the class definitions.

2 As an example, strongly typed access to the Profile property bag is ...

Get Essential ASP.NET 2.0 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.