home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / aspplus / samples / apps / address.aspc next >
Encoding:
Text File  |  2000-05-31  |  1.3 KB  |  83 lines

  1.  
  2. <script language="C#" runat="server">
  3.  
  4.   public String Caption = "Address";
  5.   public bool ShowCaption = true;
  6.  
  7.   public String Address {
  8.     get {
  9.       return TxtAddress.Value;
  10.     }
  11.     set {
  12.       TxtAddress.Value = value;
  13.     }
  14.   }
  15.  
  16.   public String City {
  17.     get {
  18.       return TxtCity.Value;
  19.     }
  20.     set {
  21.       TxtCity.Value = value;
  22.     }
  23.   }
  24.  
  25.   public String State {
  26.     get {
  27.       return TxtState.Value;
  28.     }
  29.     set {
  30.       TxtState.Value = value;
  31.     }
  32.   }
  33.  
  34.   public String Zip {
  35.     get {
  36.       return TxtZip.Value;
  37.     }
  38.     set {
  39.       TxtZip.Value = value;
  40.     }
  41.   }
  42.  
  43. </script>
  44.  
  45. <span ></span>
  46. <p>
  47. <table style="font: 10pt verdana">
  48. <% if (ShowCaption) { %>
  49.   <tr>
  50.     <td colspan="6" style="padding-bottom:10">
  51.       <b><%=Caption%></b>
  52.     </td>
  53.   </tr>
  54. <% } %>
  55.   <tr>
  56.     <td>
  57.       Address: 
  58.     </td>
  59.     <td colspan="5">
  60.       <input id="TxtAddress" size="50" type="text" runat="server">
  61.     </td>
  62.   </tr>
  63.   <tr>
  64.     <td>
  65.       City: 
  66.     </td>
  67.     <td>
  68.       <input id="TxtCity" type="text" runat="server">
  69.     </td>
  70.     <td>
  71.       State: 
  72.     </td>
  73.     <td>
  74.       <input id="TxtState" size="2" type="text" runat="server">
  75.     </td>
  76.     <td>
  77.       Zip: 
  78.     </td>
  79.     <td>
  80.       <input id="TxtZip" size="5" type="text" runat="server">
  81.     </td>
  82.   </tr>
  83. </table>