home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comredis.cab / myweb2.aspx < prev    next >
Encoding:
Text File  |  2000-06-12  |  4.7 KB  |  176 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:Tahoma; 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 String success;
  51. public String appurl;
  52.  
  53. public void Page_Load(Object sender, EventArgs e) 
  54. {
  55.   appurl = Request["URL"];   
  56.     success=Request["success"];
  57.  
  58.     if (success =="local")
  59.     {
  60.         UpdateLabel.Text = "This application is local.  Local applications cannot be updated.";
  61.     }
  62.     else if (success == "notfound")
  63.     {
  64.         UpdateLabel.Text = "Remote application cannot be found.<br>Files do not exist or server is down.";
  65.     }
  66.     else if (success == "yes")
  67.     {
  68.     UpdateLabel.Text = "The application was updated successfully.";
  69.   }
  70.   else if (success =="no" )
  71.   {
  72.     UpdateLabel.Text = "The application could not be updated.";
  73.   }
  74.   else if (success =="NoApp" )
  75.   {
  76.     UpdateLabel.Text = "The application to be updated was not found.";
  77.   }
  78. }
  79.  
  80.  
  81. public void Launch_Application(Object sender, EventArgs e)
  82. {
  83.     MyWebApplication app = MyWeb.GetApplication(appurl);
  84.             
  85.     String LaunchURL = (app.Manifest.Url.Length >0 )?
  86.                                 (app.Manifest.Url ) : 
  87.                                 "myweb://" + (appurl + "/default.aspx" );
  88.             
  89.   Response.Redirect(LaunchURL);
  90. }
  91.  
  92.  
  93. </script>
  94.  
  95. <body bgcolor="ffffff">
  96. <form runat="server">
  97.      
  98. <!-----Main toolbar Starts here -------->
  99.  
  100. <table width=100% cellspacing=0 cellpadding=0>        
  101. <tr>
  102. <td>                        
  103.   <table width="100%" bgcolor="#336699">
  104.   <tr height=70>
  105.     <td width=15><!-- Space Filler --></td>
  106.     <td align=left class="loginname">MyWeb </td>
  107.   <td valign=bottom class="topbutton"> </td>
  108.   </tr>
  109.   </table>
  110. </td>
  111.  
  112. <tr>
  113. <td>
  114.   <table bgcolor="#003366" cellspacing=0 width=100% cellpadding=0>
  115.   <tr height=20 class="topbanner">
  116.   <td width=50> <!----- Space Filler ----></td>
  117.   <td align=right>
  118.     <a id="StartBtn" style="color:#99ccff;text-decoration:none;font-size:9pt" href="install.aspx">Install Application</a>  
  119.     <span style="font-weight:100;color:#99ccff"> | </span>
  120.     <a style="color:#99ccff;text-decoration:none;font-size:9pt;" href="myweb://home">Home</a>    
  121.   </td>
  122.   </tr>
  123.   </table>
  124. </td>
  125. </tr>
  126.  
  127. <!------End of main toolbar ----->
  128.  
  129. <tr>
  130. <td align="center"><br><br>
  131.                 
  132.   <!------ Beginning of dialog box ------>
  133.  
  134.   <table width="80%" cellpadding=0 cellspacing=0>
  135.     <tr>
  136.     <td>
  137.         <font face=verdana size=4 color=#003366><b>Update Application</b> </font>
  138.     </td>
  139.     </tr>
  140.  
  141.     <tr>
  142.     <td>
  143.       <table bordercolor="#f5deb3" bgcolor=#fffff0 width=100% border=1 cellpadding=0 cellspacing=0>
  144.         <tr>
  145.         <td align=center>
  146.           <br>
  147.           <asp:Label runat="server" id="UpdateLabel" />
  148.           <br><br>
  149.       <input type="button" value="Return to Home Page" OnClick="javascript:window.navigate('myweb://home')"/>
  150.  
  151.           <% if (success == "yes") { %>
  152.                <asp:button Text="Launch Application" OnClick="Launch_Application" runat="server"/> 
  153.           <% } %>
  154.  
  155.       <br><br>
  156.         </td>
  157.         </tr>
  158.     </table>
  159.     </td>
  160.   </tr>
  161.  
  162.   </table>
  163.  
  164.         
  165.     <!------- end of dialog box -------->
  166.  
  167.  
  168. </td>
  169. </tr>
  170. </table>
  171.  
  172. </form>
  173. </body>
  174. </html>
  175.  
  176.