home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / howto / doc / encoding.aspx < prev    next >
Encoding:
Text File  |  2000-06-09  |  1.3 KB  |  43 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/globalization/encoding");
  11.  
  12.         // run an aspx page directly
  13.         // Ref.RunSample = "/quickstart/howto/samples/BaseDataTypes/Sort/Sort.aspx";
  14.  
  15.         Ref.ViewSource = "/quickstart/howto/samples/globalization/encoding/encoding.src";
  16.         Ref.Icon = "/quickstart/images/genicon.gif";
  17.         Ref.Caption = "Encoding.exe";
  18.     }
  19.  
  20. </script>
  21.  
  22. <h4>How Do I...Use different text encodings?</h4>
  23.  
  24. <div class="indent" style="width:660">
  25. This sample illustrates the use of multiple encoding formats available 
  26. from the Text namespace. It will create a textfile called "text.txt" and
  27. demonstrates how to write content to it with different encodings.
  28. </div>
  29.  
  30. <h4>Example</h4>
  31.  
  32. <Acme:SourceRef id="Ref" runat="server" />
  33.  
  34. <h4>Source Code</h4>
  35.  
  36. <div class="code">
  37. <xmp>
  38. <!-- #include virtual="/quickstart/howto/samples/globalization/encoding/encoding.cs" -->
  39. </xmp>
  40. </div>
  41.  
  42. <!-- #include virtual="/quickstart/howto/include/footer.inc" -->
  43.