home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / howto / doc / webservices / textclient.aspx < prev   
Encoding:
Text File  |  2000-05-16  |  1.1 KB  |  37 lines

  1. <%@ Register TagPrefix="Acme" TagName="SourceRef" Src="/quickstart/util/SrcRef.aspx"%>
  2.  
  3. <!-- #include virtual="/quickstart/howto/include/header.inc" -->
  4. <script language="C#" runat="server">
  5.  
  6.     public void Page_Load(Object sender, EventArgs E) 
  7.     {
  8.         // run an aspx page directly
  9.          Ref.RunSample = "/quickstart/aspplus/samples/services/TextClient/TextClient.aspx";
  10.  
  11.         Ref.ViewSource = "/quickstart/aspplus/samples/services/TextMatching/TextClient.src";
  12.         Ref.Icon = "/quickstart/images/genicon.gif";
  13.         Ref.Caption = "TextClient.aspx";    
  14.     }
  15.  
  16. </script>
  17.  
  18. <h4>How Do I...Make a GET request?</h4>
  19.  
  20. <div class="indent" style="width:660">
  21. This sample illustrates using the WebRequest and WebResponse classes to make 
  22. a GET request on a URI.</div>
  23.  
  24. <h4>Example</h4>
  25.  
  26. <Acme:SourceRef id="Ref" runat="server" />
  27.  
  28. <h4>Source Code</h4>
  29.  
  30. <div class="code">
  31. <xmp>
  32. <!-- #include virtual="/quickstart/aspplus/samples/services/TextMatching/MatchClient.cs" -->
  33. </xmp>
  34. </div>
  35.  
  36. <!-- #include virtual="/quickstart/howto/include/footer.inc" -->
  37.