home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / howto / doc / MyWriter.aspx < prev    next >
Encoding:
Text File  |  2000-04-24  |  1.1 KB  |  41 lines

  1. <%@ Register TagPrefix="Acme" TagName="SourceRef" Src="/quickstart/util/SrcRef.aspx"%>
  2.  
  3. <!-- #include virtual="/quickstart/howto/include/header.inc" -->
  4.  
  5. <script language="C#" runat="server">
  6.  
  7.     public void Page_Load(Object sender, EventArgs E) 
  8.     {
  9.         // shell the explorer to a directory
  10.         Ref.RunSample = Server.MapPath("/quickstart/howto/samples/Resources/Writer");
  11.  
  12.         // run an aspx page directly
  13.         // Ref.RunSample = "/quickstart/howto/samples/BaseDataTypes/Sort/Sort.aspx";
  14.  
  15.         Ref.ViewSource = "/quickstart/howto/samples/BaseDataTypes/Sort/Writer.src";
  16.         Ref.Icon = "/quickstart/images/genicon.gif";
  17.         Ref.Caption = "writer.dll";
  18.     }
  19.  
  20. </script>
  21.  
  22. <h4>How Do I...Create my own resource writer?</h4>
  23.  
  24. <div class="indent" style="width:660">
  25. This sample illustrates creating your own resource writer...
  26. </div>
  27.  
  28. <h4>Example</h4>
  29.  
  30. <Acme:SourceRef id="Ref" runat="server" />
  31.  
  32. <h4>Source Code</h4>
  33.  
  34. <div class="code">
  35. <xmp>
  36. <!-- #include virtual="/quickstart/howto/samples/resources/writer/writer.cs" -->
  37. </xmp>
  38. </div>
  39.  
  40. <!-- #include virtual="/quickstart/howto/include/footer.inc" -->
  41.