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

  1. <%@ Page Language="C#" %>
  2. <%@ Assembly Name="HelloService" %>
  3. <%@ Import Namespace="HelloService" %>
  4.  
  5. <html>
  6. <head>
  7.     <script runat="server">
  8.      String name;
  9.      String reply;
  10.  
  11.      void name_change(Object Source, EventArgs E)
  12.      {
  13.          // new the class
  14.          Hello hello = new Hello();
  15.  
  16.          // Call method with Name from INPUT
  17.          reply = hello.HelloMethod(Name.Value);
  18.      }
  19.     </script>
  20. </head>
  21.  
  22. <body style="font: 10pt verdana">
  23. <h3>MyHello - Hello.HelloMethod </h3>
  24.  
  25. <form runat="server">
  26.     <font face="Verdana"><b>Please Enter you name: </b>
  27.     <INPUT id="Name" VALUE="" TYPE="TEXT" runat="server" OnServerChange = "name_change">
  28.     <p>
  29.     </font>
  30. </form>
  31.  
  32. <h3>Reply : <%=reply%></h3>
  33.  
  34. <h4><SOAP XML Request Message></h4>
  35.