Getting Started
  Introduction
  What is ASP.NET?
  Language Support

ASP.NET Web Forms
  Introducing Web Forms
  Working with Server Controls
  Applying Styles to Controls
  Server Control Form Validation
  Web Forms User Controls
  Data Binding Server Controls
  Server-Side Data Access
  Data Access and Customization
  Working with Business Objects
  Authoring Custom Controls
  Web Forms Controls Reference
  Web Forms Syntax Reference

XML Web services
   created using ASP.NET

  Introducing XML Web services
  Writing a Simple XML Web service
  XML Web service Type Marshalling
  Using Data in XML Web services
  Using Objects and Intrinsics
  The XML Web service Behavior
  HTML Pattern Matching

ASP.NET Web Applications
  Application Overview
  Using the Global.asax File
  Managing Application State
  HttpHandlers and Factories

Cache Services
  Caching Overview
  Page Output Caching
  Page Fragment Caching
  Page Data Caching

Configuration
  Configuration Overview
  Configuration File Format
  Retrieving Configuration

Deployment
  Deploying Applications
  Using the Process Model
  Handling Errors

Security
  Security Overview
  Authentication & Authorization
  Windows-based Authentication
  Forms-based Authentication
  Authorizing Users and Roles
  User Account Impersonation
  Security and WebServices

Localization
  Internationalization Overview
  Setting Culture and Encoding
  Localizing ASP.NET Applications
  Working with Resource Files

Tracing
  Tracing Overview
  Trace Logging to Page Output
  Application-level Trace Logging

Debugging
  The SDK Debugger

Performance
  Performance Overview
  Performance Tuning Tips
  Measuring Performance

ASP to ASP.NET Migration
  Migration Overview
  Syntax and Semantics
  Language Compatibility
  COM Interoperability
  MTS Transactions

Sample Applications
  A Personalized Portal
  An E-Commerce Storefront
  A Class Browser Application
  IBuySpy.com

  Get URL for this page

A Class Browser Application

The following sample application implements a .NET Framework-based class browser, using the System.Reflection APIs to gather information about a class. To simplify the .aspx code, the application employs a managed component that encapsulates the reflection details. The .aspx page itself relies heavily on several DataList controls for rendering the namespaces, classes, and class details. The sample also shows the use of nested DataList controls for rendering the parameter lists. To view the sample, click the icon below.

 
VB ClassBrowser.aspx

[Run Sample] | [View Source]

The class browser also uses the ASP.NET configuration system to determine which modules to load and reflect upon. A configuration section is mapped to the HashtableSectionHandler, which maintains key/value pairs for the assembly name and file. You can add assemblies to this list by appending a line to the class browser application's configuration section, as follows:

<configuration>
  <configSections>
    <sectionGroup name="system.web">
      <section name="ClassBrowser" type="System.Configuration.NameValueSectionHandler,
       System,Version=1.0.5000.0,Culture=neutral,PublicKeyToken=b77a5c561934e089"/>
    </sectionGroup>
  </configSections>

  <system.web>
    <ClassBrowser>
       <add key="ASP.NET Class Library" value="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
       <add key=".NET Framework class Library" value="mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    </ClassBrowser>
  </system.web>

</configuration>


Copyright 2001-2002 Microsoft Corporation. All rights reserved.