home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / Remoting / MyMedia / MyRemoteControl.aspx < prev    next >
Encoding:
ASP.NET Web Form  |  2000-06-23  |  2.4 KB  |  93 lines

  1. <%@ Page Language="C#" %>
  2. <%@ Assembly Name="Homenet" %>
  3. <%@ Assembly Name="System" %>
  4. <%@ Assembly Name="System.Net" %>
  5. <%@ Import Namespace="System.Runtime.Remoting" %>
  6. <%@ Import Namespace="System.Net" %>
  7. <%@ Import Namespace="System.Text" %>
  8. <%@ Import Namespace="System.IO" %>
  9. <%@ Import Namespace="System.Collections" %>
  10. <%@ Import Namespace="Homenet" %>
  11.  
  12. <html>
  13.  
  14. <head>
  15.     <script runat="server">
  16.  
  17.  
  18.      void PlayTitle_Click(Object Source, EventArgs E)
  19.      {
  20.          VCR vcr = new VCR();
  21.  
  22.          //String mediaTitle = title.Value;
  23.          String mediaTitle = title.SelectedItem.Value;
  24.          bool ret = vcr.Play(mediaTitle);
  25.      }
  26.  
  27.      void Play_Click(Object Source, EventArgs E)
  28.      {
  29.          Homenet.VCR vcr = new VCR();
  30.          bool ret = vcr.PlaySimple();
  31.      }
  32.  
  33.      void Pause_Click(Object Source, EventArgs E)
  34.      {  
  35.          Homenet.VCR vcr = new VCR();
  36.          bool ret = vcr.Pause();
  37.      }
  38.  
  39.      void Stop_Click(Object Source, EventArgs E)
  40.      {
  41.          Homenet.VCR vcr = new VCR();
  42.          bool ret = vcr.Stop();
  43.      }
  44.     </script>
  45. </head>
  46.  
  47. <body  style="font: 10pt verdana">
  48. <h3>MyRemoteControl </h3>
  49.  
  50. <form method="post" runat="server">
  51.  
  52.     <font face="Verdana">
  53.  
  54.     <ASP:Button id="PlayTitle" text="PlayTitle" OnClick="PlayTitle_Click" runat="server" />
  55.  
  56.     <ASP:Button id="Play" text="Play" OnClick="Play_Click" runat="server" />
  57.  
  58.     <ASP:Button id="Pause" text="Pause" OnClick="Pause_Click" runat="server" />
  59.  
  60.     <ASP:Button id="Stop" text="Stop" OnClick="Stop_Click" runat="server" />
  61.  
  62.  
  63.     <table>
  64.         <tr>
  65.             <td><b>Device URL:</b></td>
  66.             <td><ASP:RadioButtonList id=RadioButtonList1 RepeatLayout="Flow" runat="server"><asp:ListItem>Default</asp:ListItem>
  67.                 <asp:ListItem>URL</asp:ListItem></ASP:RadioButtonList>
  68.  
  69.                 <input id="deviceURL" SIZE="100" VALUE="HTTP://localhost:8080/vcr.soap" TYPE="TEXT" runat="server">
  70.             </td>
  71.         </tr>
  72.  
  73.         <tr>
  74.             <td><b>Title:</b></td>
  75.             <td>
  76.  
  77.                 <ASP:DropDownList id="title" runat="server">
  78.                     <asp:ListItem >file://C:/winnt/clock.avi</asp:ListItem>
  79.                     <asp:ListItem >file://C:/winnt/clock.avi</asp:ListItem> 
  80.                 </ASP:DropDownList>
  81.  
  82.             </td>
  83.         </tr>
  84.  
  85.  
  86.  
  87.     </table>
  88.     </font>
  89.  
  90. </form>
  91.  
  92. </body>
  93. </html>