home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comredis.cab / remove.aspx < prev    next >
Encoding:
Text File  |  2000-06-12  |  4.7 KB  |  171 lines

  1. <%@ Import Namespace="System.IO" %>
  2. <%@ Import Namespace="System.Collections" %>
  3. <%@ Import Namespace="System.Web" %>
  4. <%@ Import Namespace="System.Web.Util" %>
  5.  
  6. <style>
  7.  
  8.  
  9. body           { margin:0,0,0,0; }
  10. table, td      { font-size=10pt;font-family:Verdana; }
  11. td.products td { text-align:center; font-size:8pt; vertical-align:top; height:248 }
  12.  
  13. td.select      { color:ffffff; background-color:000000; font-size:14pt;}
  14. td.select select { width:130 }
  15. td.cart        { height:2500 }
  16. td.cart td     { font-size:9pt; font-weight:700} 
  17. td.cart a      { font-size:11pt; font-weight:700}
  18.  
  19. h3             { font-size:22 }
  20. h2             { font-size:22 }
  21. a:link         { color:blue; }
  22. a:visited      { color:blue; }
  23.  
  24. div.details {background-color:ffffcc; padding-top:15; padding-bottom:20; }
  25. div.details table { width:280; }
  26. div.details table td { font-family:Verdana; font-size:8pt; }
  27.  
  28. table.nutr td  { font-family: Verdana; font-size:8pt; } 
  29.  
  30. img.selected { border-color:DC6035;border-style:solid;}
  31. img.unselected { border-color:ffffcc;border-style:solid;}
  32.  
  33. table.details td { font-family: Verdana; font-size:12pt; padding-right:50; width:50%  }
  34.  
  35. span.blurb { font-size:9pt;}
  36. table.form td { padding-right:15 }
  37.  
  38. .weblet { font-family:Arial;font-style:italic;font-weight:bold;font-size:10pt; color:#66ff66 }
  39. .weblettext { font-family:Verdona;font-size:10pt }
  40. .loginname { font-family:Verdana; font-weight:bold;font-size:50pt;color:#6699cc }
  41. .topbanner { font-family:Arial;font-weight:bold;font-size:10pt;color:white }
  42. .topbutton { font-family:Arial;font-weight:bold;font-size:11pt;color:black }
  43. .subscriptiontitle { font-family:Arial;font-style:italic;font-weight:bold;font-size:16pt; color:#9C0001 }
  44.  
  45.  
  46. </style>
  47.  
  48. <script runat="server" language="C#">
  49.  
  50. public bool remove = false; 
  51.         
  52. public void Page_Load(Object sender, EventArgs e) 
  53. {
  54.   if (!IsPostBack) 
  55.   {
  56.     String appurl = Request.QueryString["url"];
  57.     MyWebApplication app = MyWeb.GetApplication(appurl);
  58.  
  59.         if (app == null)
  60.         {
  61.             remove= false;
  62.         }
  63.         
  64.     if (app != null && appurl != null && appurl.Length>0) 
  65.     {
  66.       UrlHidden.Value = appurl;
  67.       AppName.Text = (app.Manifest.Name.Length >0) ? (app.Manifest.Name):"myweb://"+(app.Manifest.ApplicationUrl);
  68.       remove = true;
  69.     }
  70.   }
  71.         
  72. }
  73.  
  74. public void Submit_Click(Object sender, EventArgs e) 
  75. {
  76.   MyWebApplication app = MyWeb.GetApplication(UrlHidden.Value);
  77.  
  78.   if (app != null)
  79.   { 
  80.     app.Remove();
  81.     Response.Redirect("myweb://Home/myweb3.aspx");
  82.   }
  83. }
  84.  
  85. </script>
  86.  
  87. <body bgcolor="ffffff">
  88. <form runat="server" method="GET" action="remove.aspx">
  89.  
  90. <input type="hidden" id="UrlHidden" runat="server"/>
  91.  
  92. <!-----Main toolbar Starts here -------->
  93.  
  94. <table width=100% cellspacing=0 cellpadding=0> 
  95. <tr>
  96. <td>                        
  97.   <table width="100%" bgcolor="#336699">
  98.   <tr height=70>
  99.   <td width=15><!-- Space Filler --></td>
  100.     <td align=left class="loginname">MyWeb </td>
  101.   <td valign=bottom class="topbutton"></td>
  102.   </tr>
  103.   </table>
  104. </td>
  105.  
  106. <tr>
  107. <td>
  108.   <table bgcolor="#003366" cellspacing=0 width=100% cellpadding=0>
  109.   <tr height=20 class="topbanner">
  110.   <td width=50> <!----- Space Filler ----></td>
  111.   <td align=right>
  112.     <a id="StartBtn" style="color:#99ccff;text-decoration:none;font-size:9pt" href="install.aspx">Install Application</a>  
  113.     <span style="font-weight:100;color:#99ccff"> | </span>
  114.     <a style="color:#99ccff;text-decoration:none;font-size:9pt;" href="myweb://home">Home</a>    
  115.   </td>
  116.   </tr>
  117.   </table>
  118. </td>
  119. </tr>
  120.  
  121.  
  122. <!------End of main toolbar ----->
  123.  
  124. <tr>
  125. <td align="center">  
  126.   <br><br>
  127.   <!------ Beginning of Dialog Box ------>
  128.  
  129.   <table width="80%" cellpadding=0 cellspacing=0>
  130.     <tr>
  131.     <td>
  132.       <font face=verdana size=4 color=#003366><b>Remove Application</b> </font>
  133.     </td>
  134.     </tr>
  135.  
  136.     <tr>
  137.     <td>
  138.         <table bordercolor="#f5deb3" bgcolor=#fffff0 width=100% border=1 cellpadding=20 cellspacing=0>
  139.         <tr>
  140.         <td align=center>
  141.             <% if (remove) { %> 
  142.                             
  143.         The application <b><asp:Label id="AppName" runat="server"/></b> will now be removed.<br><br>
  144.         <input type="submit" OnServerClick="Submit_Click" value="   OK   " runat="server"> 
  145.         <input type="button" value="   Cancel   " OnClick="javascript:window.navigate('myweb://home')"/>
  146.             <% } else { %> 
  147.  
  148.                 The application cannot be found.  Removal is not possible.<br><br>
  149.                 <input type="button" value="Return to Home Page" OnClick="javascript:window.navigate('myweb://home')"/>
  150.  
  151.             <% } %> 
  152.           <br>
  153.         </td>
  154.         </tr>
  155.     </table>
  156.     </td>
  157.     </tr>
  158.  
  159.     </table>
  160.  
  161.     <!------- end of dialog box -------->
  162.  
  163.  
  164. </td>
  165. </tr>
  166. </table>
  167.  
  168. </form>
  169. </body>
  170. </html>
  171.