home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / ClsView / popup_remove.aspx < prev    next >
Encoding:
ASP.NET Web Form  |  2000-06-23  |  1.5 KB  |  55 lines

  1. <%@ Page Language="C#" %>
  2.  
  3. <%@ Import Namespace="System" %>
  4. <%@ Import Namespace="System.IO" %>
  5. <%@ Import Namespace="System.Collections" %>
  6. <%@ Import Namespace="System.Data" %>
  7. <%@ Import Namespace="System.Data.XML" %>
  8. <%@ Import Namespace="System.Data.XML.DOM" %>
  9.  
  10. <Script runat="server">
  11.  
  12.     void Page_Load(object sender, EventArgs Ev){
  13.  
  14.     }
  15.  
  16. private void WriteInnards(){
  17.  
  18.     ArrayList AssemblyStrings = (ArrayList)(Session["Assems"]);
  19.     AssemblyStrings.Sort();
  20.     for (int i = 0; i < AssemblyStrings.Count; ++i){
  21.         if (i == 0){
  22.             Response.Write("<FORM method=\"POST\" onsubmit=\"javascript:window.close();\" action=\"toc.aspx\" target=\"menu\" Name=\"RemoveForm\" ID=\"RemoveForm\">");
  23.         }
  24.         Response.Write("\r\n<INPUT Name=\"Remove\" Type=\"Checkbox\" Value=\"" + AssemblyStrings[i] + "\"/><SPAN Class=\"RemoveItem\">" + AssemblyStrings[i] + "</SPAN><BR>");
  25.         if (i == AssemblyStrings.Count - 1){
  26.             Response.Write("<BR><input class=btnClass type=submit Name=OKBtn Value=\"OK\"/>");
  27.             Response.Write("<input class=btnClass type=button Name=CancelBtn Value=\"Cancel\" onclick=\"javascript:window.close()\">");
  28.             
  29.             Response.Write("</FORM>");
  30.         }
  31.     }
  32. }
  33.  
  34. </Script>
  35.  
  36.  
  37. <HTML>
  38.     <HEAD>
  39.         <style type="text/css">
  40.          @import url(backSDK4.css);
  41.          BODY{
  42.             margin-left:-15;
  43.          }
  44.         </style>
  45.         <Title>ClassView: Remove Library</Title>
  46.    </HEAD>
  47. <Body>
  48. Select the libraries you want to remove from the view pane and press ENTER.<BR> 
  49.  
  50. <%WriteInnards();%>
  51.             
  52. </Body>
  53. </HTML>
  54.                 
  55.