home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / howto / doc / format.aspx < prev    next >
Encoding:
Text File  |  2000-05-31  |  1.3 KB  |  43 lines

  1.  
  2. <!-- #include virtual="/quickstart/howto/include/header.inc" -->
  3.  
  4.  
  5.  
  6. <% 
  7.     runsample = Server.MapPath("/quickstart/howto/samples/BaseDataTypes/format")
  8.     viewsource = "/quickstart/howto/samples/BaseDataTypes/format/stringformat.src"
  9.     icon = "/quickstart/images/console.gif"
  10.     caption = "StringFormat.exe"
  11. %>
  12.  
  13. <h4>How Do I...Format base data types for output?</h4>
  14.  
  15. <div class="indent" style="width:660">
  16. This sample illustrates how to format base data types for display. We show 
  17. built in formatting codes and picture formats for dates, integral and floating 
  18. point numbers. We also show how to customize formatting of your own type and 
  19. how to add new formatting codes. 
  20. </div>
  21.  
  22. <h4>Example</h4>
  23.  
  24. <p>
  25. <div class="indent">
  26. <a target="_blank" href="<%=runsample%>">
  27. <img style="border-color:black" border=1 src="<%=icon%>"><br>
  28. </a>
  29. <div class="caption"><%=caption%></div><br>
  30. [<a target="_blank" href="<%=runsample%>">View Sample</a>] | 
  31. [<a target="_blank" href="/quickstart/util/srcview.aspx?path=<%=viewsource%>">View Source</a>]<p>
  32. </div>
  33.  
  34. <h4>Source Code</h4>
  35.  
  36. <div class="code">
  37. <xmp>
  38. <!-- #include virtual="/quickstart/howto/samples/BaseDataTypes/Format/stringformat.cs" -->
  39. </xmp>
  40. </div>
  41.  
  42. <!-- #include virtual="/quickstart/howto/include/footer.inc" -->
  43.