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