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

  1.  
  2. <!-- #include virtual="/quickstart/howto/include/header.inc" -->
  3.  
  4. <%
  5.     runsample = Server.MapPath("/quickstart/howto/samples/BaseDataTypes/parse")
  6.     viewsource = "/quickstart/howto/samples/BaseDataTypes/parse/parse.src"
  7.     icon = "/quickstart/images/console.gif"
  8.     caption = "Parse.exe"
  9. %>
  10.  
  11. <h4>How Do I...Parse strings into Base Data Types?</h4>
  12.  
  13. <div class="indent" style="width:660">
  14. This sample illustrates how to parse a string into a date and an integer. 
  15. We use the Parse method from DateTime and Int32, which handles a variety of 
  16. formatting issues.
  17. </div>
  18.  
  19. <h4>Example</h4>
  20.  
  21. <p>
  22. <div class="indent">
  23. <a target="_blank" href="<%=runsample%>">
  24. <img style="border-color:black" border=1 src="<%=icon%>"><br>
  25. </a>
  26. <div class="caption"><%=caption%></div><br>
  27. [<a target="_blank" href="<%=runsample%>">View Sample</a>] | 
  28. [<a target="_blank" href="/quickstart/util/srcview.aspx?path=<%=viewsource%>">View Source</a>]<p>
  29. </div>
  30.  
  31. <h4>Source Code</h4>
  32.  
  33. <div class="code">
  34. <xmp>
  35. <!-- #include virtual="/quickstart/howto/samples/BaseDataTypes/Parse/parse.cs" -->
  36. </xmp>
  37. </div>
  38.  
  39. <!-- #include virtual="/quickstart/howto/include/footer.inc" -->
  40.