home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / howto / doc / webservices / dataserviceclient.aspx next >
Encoding:
Text File  |  2000-05-16  |  1.2 KB  |  40 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/aspplus/samples/services/DataService");
  11.  
  12.         // run an aspx page directly
  13.          Ref.RunSample = "/quickstart/aspplus/samples/services/DataService/DataServiceClient.aspx";
  14.  
  15.         Ref.ViewSource = "/quickstart/aspplus/samples/services/DataService/DataServiceClient.src";
  16.         Ref.Icon = "/quickstart/images/genicon.gif";
  17.         Ref.Caption = "DataServiceClient.aspx";
  18.     }
  19.  
  20. </script>
  21.  
  22. <h4>How Do I...Make a GET request?</h4>
  23.  
  24. <div class="indent" style="width:660">
  25. This sample illustrates using the WebRequest and WebResponse classes to make a GET request on a URI.</div>
  26.  
  27. <h4>Example</h4>
  28.  
  29. <Acme:SourceRef id="Ref" runat="server" />
  30.  
  31. <h4>Source Code</h4>
  32.  
  33. <div class="code">
  34. <xmp>
  35. <!-- #include virtual="/quickstart/aspplus/samples/services/DataService/DataServiceClient.aspx" -->
  36. </xmp>
  37. </div>
  38.  
  39. <!-- #include virtual="/quickstart/howto/include/footer.inc" -->
  40.