home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / aspplus / doc / classbrowser.aspx < prev    next >
Encoding:
Text File  |  2000-06-08  |  1.9 KB  |  47 lines

  1.  
  2. <%@ Register TagPrefix="Acme" TagName="SourceRef" Src="/quickstart/util/SrcRef.aspx"%>
  3.  
  4. <!-- #include virtual="/quickstart/aspplus/include/header.inc" -->
  5.  
  6. <h4>A Class Browser Application</h4>
  7.  
  8. The following is a sample application that implements an NGWS runtime ClassBrowser, using the <b>System.Reflection</b> APIs to gather 
  9. information about a class.  To simplify the .aspx code, the application employs a managed component that encapsulates the reflection
  10. details.  The .aspx page itself relies heavily on several <b>DataList</b> controls for rendering the namespaces, classes, and class 
  11. details.  There is an interesting use of nested DataList controls in this sample as well (for rendering the parameter lists).  View the
  12. sample by clicking the icon below:
  13. <p>
  14.  
  15. <Acme:SourceRef 
  16.   RunSample="/quickstart/aspplus/samples/classbrowser/classbrowser.aspx" 
  17.   ViewSource="/quickstart/aspplus/samples/classbrowser/classbrowser.src"
  18.   Icon="/quickstart/aspplus/images/classbrowser_icon.gif"
  19.   Caption="ClassBrowser.aspx"
  20.   runat="server" />
  21.  
  22. <p>
  23. The ClassBrowser also uses the ASP+ configuration system to determine which modules to load and reflect upon.  We've mapped a 
  24. configuration section to the <b>DictionarySectionHandler</b>, which maintains key/value pairs for the assembly name and 
  25. file.  You can add assemblies to this list by appending a line to the "ClassBrowser" configuration section:
  26. <p>
  27.  
  28. <div class="code"><pre>
  29. <configuration> 
  30.  
  31.     <configsections>
  32.        <add name="ClassBrowser" type="System.Web.Configuration.DictionarySectionHandler"/>
  33.     </configsections>
  34.  
  35.     <ClassBrowser>
  36.        <set key="ASP+ Class Library" value="System.Web.dll" />
  37.        <set key="Base Class Library" value="mscorlib.dll" /> 
  38.     </ClassBrowser>
  39.  
  40. </configuration> 
  41. </pre></div>
  42.  
  43. <p>
  44.  
  45. <!-- #include virtual="/quickstart/aspplus/include/footer.inc" -->
  46.  
  47.