collection.aspx
上传用户:lanchensha
上传日期:2022-02-27
资源大小:7530k
文件大小:3k
源码类别:

编辑器/阅读器

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" Inherits="DotNetTextBox.PageCollection"%>
  2. <%@ Import Namespace="DotNetTextBox" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" >
  5. <head runat="server">
  6. <title><%=ResourceManager.GetString("getpage")%></title>
  7. <meta http-equiv="pragma" content="no-cache" />
  8. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  9. <base target="_self" />
  10. <link href="stylesheet.css" rel="stylesheet" type="text/css" />
  11. <script language=javascript>
  12. var userAgent = navigator.userAgent.toLowerCase();
  13. var is_ie = (userAgent.indexOf('msie') != -1);
  14. function loading() 
  15. {
  16.     document.getElementById("loading").style.visibility="visible";
  17.     return true;
  18. }
  19. function addeditor()
  20. {
  21. if(confirm('<%=ResourceManager.GetString("getpageconfirm")%>'))
  22. {
  23. if(is_ie)
  24. {
  25. window.returnValue=document.getElementById("tempcontent").value;
  26. window.close();
  27. }
  28. else{
  29. window.opener.inserObject(null,'getpage',document.getElementById("tempcontent").value);
  30. window.close();
  31. }
  32. }
  33. }
  34. </script>
  35. </head>
  36. <body>
  37. <form runat=server>
  38. <div id="loading" style="border-right: #333333 1px dashed; border-top: #333333 1px dashed;
  39.                         font-size: 9pt; visibility: hidden; border-left: #333333 1px dashed;
  40.                         width: 270px; color: #000000; border-bottom: #333333 1px dashed; position: absolute; height: 120px; background-color: #ffffff">
  41.                         <center>
  42.                             <br />
  43.                             <br />
  44.                             <%=ResourceManager.GetString("getpageloading")%></center>
  45.                         <br />
  46.                         <center>
  47.                             <asp:Button ID="canceloading" runat="server" Style="border-top-style: dashed; border-right-style: dashed;
  48.                                 border-left-style: dashed; border-bottom-style: dashed" />&nbsp;</center>
  49.                         <br />
  50.                     </div>
  51.         <table align=center>
  52.             <tr>
  53.                 <td style="height: 46px; width: 360px;" >
  54.                         <asp:TextBox ID="txtUrl" runat="server" Text="http://" Width="298px"></asp:TextBox>
  55.                     <br />
  56.         <%=ResourceManager.GetString("getpagetype")%>:<asp:DropDownList ID="seltype" runat="server" />
  57.                     <asp:Button ID="btnReturn" runat="server" OnClientClick="loading()" OnClick="btnReturn_Click" />
  58.                     <input type=button name="close" onClick="window.close();" value='<%=ResourceManager.GetString("close")%>'></td>
  59.             </tr>
  60.         </table>
  61.     <asp:HiddenField ID="tempcontent" runat="server" />
  62. </form>
  63. </body>
  64. <script type="text/javascript">
  65. var load=document.getElementById('loading');
  66. window.onload=function(){resizeLoad()};
  67. function resizeLoad()
  68. {
  69. load.style.top = parseInt((document.documentElement.clientHeight-load.offsetHeight)/2+document.documentElement.scrollTop);
  70. load.style.left = parseInt((document.documentElement.clientWidth-load.offsetWidth)/2+document.documentElement.scrollLeft);
  71. }
  72. if(is_ie)
  73. {
  74.     document.body.bgColor="ButtonFace";
  75. }
  76. else
  77. {
  78.     document.body.bgColor="#E0E0E0";
  79. }
  80. </script> 
  81. </html>