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

编辑器/阅读器

开发平台:

C#

  1. <%@Page Language="C#" ValidateRequest="false" ContentType="text/html"%>
  2. <%@Register TagPrefix="dntb" Namespace="DotNetTextBox" Assembly="DotNetTextBox"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <script runat="server" language="c#">
  5.     private void Page_Load(object sender, System.EventArgs e)
  6.     {
  7.         if (!IsPostBack)
  8.         {
  9.             WebEditor1.Text = "<a href=http://www.aspxcn.com.cn><img src='system_dntb/skin/default/img/logo.gif' alt='DotNet中华网版权所有' width=260 height=60 border=0></a>";
  10.         }
  11.     }
  12.     protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
  13.     {
  14.         if (Int32.Parse(demoselect.SelectedValue) < 9)
  15.         {
  16.             showdemo.ActiveViewIndex = Int32.Parse(demoselect.SelectedValue);
  17.             switch (demoselect.SelectedValue)
  18.             {
  19.                 case "1":
  20.                     WebEditor1.MenuConfig = "full.config";
  21.                     WebEditor1.Width = 655;
  22.                     break;
  23.                 case "2":
  24.                     Response.Cookies["uploadChildFolder"].Expires = DateTime.Now;
  25.                     break;
  26.                 case "4":
  27.                     lng.SelectedValue = Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"].ToLower().Split(',')[0];
  28.                     WebEditor1.MenuConfig = "default.config";
  29.                     break;
  30.                 case "6":
  31.                     WebEditor2.Text = "<a href=http://www.aspxcn.com.cn><img src='system_dntb/skin/default/img/logo.gif' alt='DotNet中华网版权所有' width=260 height=60 border=0></a>";
  32.                     break;
  33.                 case "7":
  34.                     WebEditor1.MenuConfig = "default_style1.config";
  35.                     WebEditor1.Width = 600;
  36.                     break;
  37.                 case "8":
  38.                     WebEditor1.MenuConfig = "Pageoutput.config";
  39.                     break;
  40.                 default:
  41.                     WebEditor1.MenuConfig = "default.config";
  42.                     WebEditor1.Width = 590;
  43.                     break;
  44.             }
  45.             WebEditor1.Text = "<a href=http://www.aspxcn.com.cn><img src='system_dntb/skin/default/img/logo.gif' alt='DotNet中华网版权所有' width=260 height=60 border=0></a>";
  46.         }
  47.         else
  48.         {
  49.             Response.Redirect("http://www.aspxcn.com.cn/demo/default.aspx");
  50.         }
  51.     }
  52.     private void Button1_OnClick(object sender, System.EventArgs e)
  53.     {
  54.         WebEditor1.Focus = true;
  55.         switch (showdemo.ActiveViewIndex.ToString())
  56.         {
  57.             case "3":
  58.                 System.Data.OleDb.OleDbConnection lj = new System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;Data Source=" + HttpContext.Current.Server.MapPath("Demo.mdb"));
  59.                 System.Data.OleDb.OleDbCommand ml = new System.Data.OleDb.OleDbCommand("insert into temp(contents) values('" + Server.HtmlEncode(WebEditor1.Text.Replace("'", "''")) + "')", lj);
  60.                 lj.Open();
  61.                 ml.ExecuteNonQuery();
  62.                 System.Data.OleDb.OleDbDataAdapter dr = new System.Data.OleDb.OleDbDataAdapter("select top 1 contents from temp order by id desc", lj);
  63.                 System.Data.DataSet ly = new System.Data.DataSet();
  64.                 dr.Fill(ly);
  65.                 label1.Text = "<hr><b>以下是DotNetTextBox控件提交的内容</b>:<br>" + Server.HtmlDecode(Encoding.Unicode.GetString((byte[])ly.Tables[0].Rows[0]["contents"]));
  66.                 lj.Close();
  67.                 break;
  68.             case "6":
  69.                 WebEditor1.Text = WebEditor2.Text;
  70.                 break;
  71.             case "8":
  72.                 ArrayList content;
  73.                 if (selectPageOutput.SelectedItem.Value == "manual")
  74.                 {
  75.                     content = WebEditor1.getManualPage;
  76.                 }
  77.                 else
  78.                 {
  79.                     content = WebEditor1.getAutoPage;
  80.                 }
  81.                 if (content.Count > 1)
  82.                 {
  83.                     for (int i = 0; i < content.Count; i++)
  84.                     {
  85.                         label1.Text += "<br>分页"+i.ToString()+"内容:<hr size='1' style='border-style:dashed;width:99%; border-color:#999999' align=center>" + content[i].ToString()+"<br>";        
  86.                     }
  87.                 }
  88.                 else
  89.                 {
  90.                     label1.Text = "<hr size='1' style='border-style:dashed;width:99%; border-color:#999999' align=center><b>以下是DotNetTextBox控件提交的内容</b>:<br>" + WebEditor1.Text;  
  91.                 }
  92.                 break;
  93.             default:
  94.                 label1.Text = "<hr size='1' style='border-style:dashed;width:99%; border-color:#999999' align=center><b>以下是DotNetTextBox控件提交的内容</b>:<br>" + WebEditor1.Text;
  95.                 break;
  96.         }
  97.     }
  98.     private void Button2_OnClick(object sender, System.EventArgs e)
  99.     {
  100.         WebEditor1.Text = "";
  101.     }
  102.     private void ChangedUser(object sender, System.EventArgs e)
  103.     {
  104.         Response.Cookies["uploadChildFolder"].Expires = DateTime.Now;
  105.         //根据用户权限动态修改上传配置文件
  106.         WebEditor1.UploadConfig = selectuser.SelectedItem.Value + ".config";
  107.         //根据用户权限动态修改上传目录(实际应用中可根据从数据库读取到的用户名来创建目录)
  108.         WebEditor1.UploadFolder = "upload/" + selectuser.SelectedItem.Value + "/";
  109.         //根据用户权限动态修改菜单配置 
  110.         WebEditor1.MenuConfig = selectuser.SelectedItem.Value + ".config";
  111.         //根据用户权限修改控件适合的界面宽度
  112.         switch (selectuser.SelectedItem.Value)
  113.         {
  114.             case "guest":
  115.                 WebEditor1.Width = 525;
  116.                 break;
  117.             case "user":
  118.                 WebEditor1.Width = 570;
  119.                 break;
  120.             case "administrator":
  121.                 WebEditor1.Width = 575;
  122.                 break;
  123.             default:
  124.                 WebEditor1.Width = 590;
  125.                 break;
  126.         }
  127.     }
  128.     private void ChangedLng(object sender, System.EventArgs e)
  129.     {
  130.         //通过下拉选择框的值来动态设置控件界面显示特定的语言 
  131.         WebEditor1.Languages = lng.SelectedItem.Value;
  132.     }
  133.     private void ChangedSaveTime(object sender, System.EventArgs e)
  134.     {
  135.         //设置菜单工具栏位置记忆失效时间后(必须是数值类型),使用者自行拖动过菜单工具栏的位置都会使用Cookie记忆!
  136.         //此功能将让编辑器使用者即时构建自己的个性化编辑器!
  137.         WebEditor1.ExpireHours = Int32.Parse(savetime.SelectedItem.Value);
  138.     }
  139.     private void ChangedMenuStyle(object sender, System.EventArgs e)
  140.     {
  141.         //根据选择的值设定菜单配置文件
  142.         WebEditor1.MenuConfig = MenuStyle.SelectedValue;
  143.         switch (MenuStyle.SelectedValue)
  144.         {
  145.             case "full_style2.config":
  146.                 //为样式二设定合适宽度
  147.                 WebEditor1.Width = 575;
  148.                 break;
  149.             case "full_style3.config":
  150.                 //为样式三设定合适宽度
  151.                 WebEditor1.Width = 610;
  152.                 break;
  153.             default:
  154.                 //为样式一设定合适宽度
  155.                 WebEditor1.Width = 655;
  156.                 break;
  157.         }
  158.     }
  159.     private void ChangeArray(object sender, System.EventArgs e)
  160.     {
  161.         //根据选择的值设定菜单配置文件
  162.         WebEditor1.MenuConfig = selectArray.SelectedValue;
  163.         //设定宽度
  164.         WebEditor1.Width = 600;
  165.     }
  166.     private void ChangedSkin(object sender, System.EventArgs e)
  167.     {
  168.         //设置新的皮肤风格
  169.         WebEditor1.Skin = skin.SelectedItem.Value;
  170.     }
  171. </script>
  172. <html xmlns="http://www.w3.org/1999/xhtml" >
  173. <head runat="server">
  174. <title>[Aspxcn中华网工作室]DotNetTextBox在线编辑器控件演示</title>
  175. <style>
  176. td {  font-family:"宋体","Verdana"; font-size: 9pt}
  177. body {
  178. font-size: 9pt;font-family:"宋体","Verdana";
  179. }
  180. table {
  181. font-size: 9pt;font-family:"宋体","Verdana";
  182. }
  183. a:link {color:#000000;text-decoration :none}
  184. a:visited {color:#000000;text-decoration :none}
  185. a:hover {color:#507CD1;text-decoration :none;position: relative; left: 1px; top: 1px; clip:rect(   )}
  186. .lt0 {
  187. BORDER: #999 1px dotted;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: #EEEEEE; PADDING-BOTTOM: 0px; cursor:pointer; PADDING-TOP: 0px; 
  188. }
  189. .lt1 {
  190. BORDER: #999999 1px solid; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: #CCCCCC; PADDING-BOTTOM: 0px; cursor:pointer; PADDING-TOP: 0px;
  191. }
  192. </style>
  193. </head>
  194. <body topmargin="5" bottommargin="5" bgcolor="#EEEEEE">
  195.     <center>
  196.     <form id="form1" runat="server">
  197.         <div style="z-index: 999;width: 90%;height:100%; background-color:#FFFFFF; border:dotted 1px #999999; text-align: left;">
  198.         <table bgcolor="#006699" border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 80px">
  199.             <tr>
  200.                 <td align="left" colspan="4" style="height: 60px; width: 801px;">
  201.                         <img align="baseline" border="0" height="60" src="system_dntb/skin/xp/img/logo.png"
  202.                             width="260" />
  203.                     <span style="color: #ffffff">多功能的DHTML在线所见即所得编辑器控件(For Asp.Net2.0/3.0/3.5)</span></td>
  204.             </tr>
  205.         </table><div align=center style="padding-top:5px">
  206.             <table border="0" cellpadding="0" cellspacing="0" width="99%">
  207.                 <tr align=center>
  208.                     <td class="lt0" nowrap="nowrap" onclick="top.location.href='default.htm'"
  209.                         onmouseenter="javascript:this.className='lt1';" onmouseleave="javascript:this.className='lt0';"
  210.                         width="10%" style="height: 22px">
  211.                         首页</td>
  212.                     <td nowrap="nowrap" width="1%" style="height: 22px;color:#999999">|</td>
  213.                     <td class="lt0" nowrap="nowrap" onclick="top.location.href='Buy.htm'"
  214.                         onmouseenter="javascript:this.className='lt1';" onmouseleave="javascript:this.className='lt0';"
  215.                         width="10%" style="height: 22px">
  216.                         在线购买控件</td>
  217.                     <td nowrap="nowrap" width="1%" style="height: 22px;color:#999999">|</td>
  218.                     <td class="lt0" nowrap="nowrap" onclick="window.open('http://www.aspxcn.com.cn/dotnettextbox/download.htm')"
  219.                         onmouseenter="javascript:this.className='lt1';" onmouseleave="javascript:this.className='lt0';"
  220.                         width="10%" style="height: 22px">
  221.                         控件下载</td>
  222.                     <td nowrap="nowrap" width="1%" style="height: 22px;color:#999999">|</td>
  223.                     <td class="lt0" nowrap="nowrap" onclick="top.location.href='demo.aspx'"
  224.                         onmouseenter="javascript:this.className='lt1';" onmouseleave="javascript:this.className='lt0';"
  225.                         width="10%" style="height: 22px">
  226.                         在线演示</td>
  227.                     <td nowrap="nowrap" width="1%" style="height: 22px;color:#999999">|</td>
  228.                     <td class="lt0" nowrap="nowrap" onclick="top.location.href='Faq.htm'"
  229.                         onmouseenter="javascript:this.className='lt1';" onmouseleave="javascript:this.className='lt0';"
  230.                         width="10%" style="height: 22px">
  231.                         常见问题</td>
  232.                     <td nowrap="nowrap" width="1%" style="height: 22px;color:#999999">|</td>
  233.                     <td class="lt0" nowrap="nowrap" onclick="window.open('help.htm')"
  234.                         onmouseenter="javascript:this.className='lt1';" onmouseleave="javascript:this.className='lt0';"
  235.                         width="10%" style="height: 22px">
  236.                         帮助文档</td>
  237.                     <td nowrap="nowrap" width="1%" style="height: 22px;color:#999999">|</td>
  238.                     <td class="lt0" nowrap="nowrap" onclick="window.open('http://www.aspxcn.com.cn')"
  239.                         onmouseenter="javascript:this.className='lt1';" onmouseleave="javascript:this.className='lt0';"
  240.                         width="10%" style="height: 22px">
  241.                         反馈论坛</td>
  242.                 </tr>
  243.             </table>
  244.                     </div>
  245.             <hr size="1" style="border-style:dashed;width:99%; border-color:#999999" align=center />
  246.             &nbsp;<strong>&nbsp; [请选择控件的演示实例]:</strong><asp:DropDownList ID="demoselect" runat="server" Width="400px" AutoPostBack=true OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
  247.             <asp:ListItem Selected=True Text="Demo:控件默认状态下常见的应用演示(C#)" Value="0"></asp:ListItem>
  248.             <asp:ListItem Text="Demo:控件所有在线编辑功能的应用演示(C#)" Value="1"></asp:ListItem>
  249.             <asp:ListItem Text="Demo:为每个用户单独设置上传文件夹及菜单界面的应用演示(C#)" Value="2"></asp:ListItem>
  250.             <asp:ListItem Text="Demo:控件内容提交到数据库并读取显示的应用演示(C#)" Value="3"></asp:ListItem>
  251.             <asp:ListItem Text="Demo:控件自适应多国语言界面及界面皮肤变换的应用演示(C#)" Value="4"></asp:ListItem>
  252.             <asp:ListItem Text="Demo:控件记忆菜单工具栏拖曳位置的应用演示(C#)" Value="5"></asp:ListItem>
  253.             <asp:ListItem Text="Demo:同一页面放置多个控件的应用演示(C#)" Value="6"></asp:ListItem>
  254.             <asp:ListItem Text="Demo:控件菜单自定义排列及实时拖曳菜单工具栏的应用演示(C#)" Value="7"></asp:ListItem>
  255.             <asp:ListItem Text="Demo:控件提交内容手动及自动分页输出的应用演示(C#)" Value="8"></asp:ListItem>
  256.             <asp:ListItem Text="Demo:控件应用案例之简易在线留言簿(C#)" Value="9"></asp:ListItem>
  257.             </asp:DropDownList>
  258.             [查看VB版演示(暂无)]<br />          <div>
  259.                 <br />
  260.                 <table align="center" width="95%">
  261.                             <tr>
  262.                                 <td valign="top">
  263.             <asp:MultiView ID="showdemo" runat="server" ActiveViewIndex="0">
  264.                 <asp:View ID="demo1" runat="server">
  265.                                     <fieldset>
  266.                                         <legend>演示说明</legend>&nbsp; &nbsp;&nbsp;DotNetTextBox控件默认状态下最常见的应用实例,其中后台代码详细说明了控件通过Page_Load绑定默认内容及提交控件内容时的事件响应代码。而页面调用控件代码则演示了为控件设置初始属性值的代码,本例子通过设置skin属性来更换控件的皮肤主题为XP界面!</fieldset>
  267.                                     <br />
  268.                                     页面声明:<br />
  269.                                     <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  270.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  271.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  272.                                         background-color: #eeeeee">
  273.                                         <div>
  274.                                             <span style="color: #0000ff">&lt;</span><span style="color: #800000">%@Register
  275.                                                         </span><span style="color: #ff0000">TagPrefix</span><span style="color: #0000ff">="dntb"</span><span
  276.                                                             style="color: #ff0000"> Namespace</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  277.                                                                 style="color: #ff0000"> Assembly</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  278.                                                                     style="color: #ff0000">%</span><span style="color: #0000ff">&gt;</span></div>
  279.                                     </div>
  280.                                     <br />
  281.                                     后台代码:<br />
  282.                     <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  283.                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  284.                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  285.                         background-color: #eeeeee">
  286.                         <div style="font-family: Courier New">
  287.                                             &lt;script runat=<span style="color: maroon">"server"</span> language=<span style="color: maroon">"c#"</span>&gt;&nbsp;
  288.                             <br />
  289.                             &nbsp; &nbsp; <span style="color: blue">private</span> <span style="color: blue">void</span>
  290.                             Page_Load(<span style="color: blue">object</span> sender, System.EventArgs e)&nbsp;
  291.                             <br />
  292.                             &nbsp; &nbsp; {
  293.                             <br />
  294.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">if</span> (!IsPostBack)<br />
  295.                             &nbsp; &nbsp; &nbsp; &nbsp; {
  296.                             <br />
  297.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//设置控件首次加载时绑定的默认内容,如无需绑定默认内容则不需要设置此值即可(默认为空内容)!</span>
  298.                             <br />
  299.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Text = <span style="color: maroon">
  300.                                                 "&lt;a href=http://www.aspxcn.com.cn&gt;&lt;img src='system_dntb/skin/xp/img/logo.gif'
  301.                                 alt='DotNet中华网版权所有' width=260 height=60 border=0&gt;&lt;/a&gt;"</span>;
  302.                             <br />
  303.                             &nbsp; &nbsp; &nbsp; &nbsp; }
  304.                             <br />
  305.                             &nbsp; &nbsp; }
  306.                             <br />
  307.                             &nbsp; &nbsp; <span style="color: blue">private</span> <span style="color: blue">void</span>
  308.                             Button1_OnClick(<span style="color: blue">object</span> sender, System.EventArgs
  309.                             e)
  310.                             <br />
  311.                             &nbsp; &nbsp; {
  312.                             <br />
  313.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//将当前编辑器控件的内容显示到Label控件里,实际应用中可以将内容在此提交到数据库中保存&nbsp;</span>
  314.                             <br />
  315.                             &nbsp; &nbsp; &nbsp; &nbsp; label1.Text = <span style="color: maroon">"&lt;hr size='1'
  316.                                 style='border-style:dashed;width:99%; border-color:#999999' align=center&gt;&lt;b&gt;以下是DotNetTextBox控件提交的内容&lt;/b&gt;:&lt;br&gt;"</span>
  317.                             + WebEditor1.Text;
  318.                             <br />
  319.                             &nbsp; &nbsp; }
  320.                             <br />
  321.                             &nbsp; &nbsp; <span style="color: blue">private</span> <span style="color: blue">void</span>
  322.                             Button2_OnClick(<span style="color: blue">object</span> sender, System.EventArgs
  323.                             e)
  324.                             <br />
  325.                             &nbsp; &nbsp; {
  326.                             <br />
  327.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//清空当前编辑器控件的内容</span>
  328.                             <br />
  329.                             &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Text = <span style="color: maroon">""</span>;
  330.                             <br />
  331.                             &nbsp; &nbsp; }
  332.                             <br />
  333.                                             &lt;/script&gt;</div>
  334.                     </div>
  335.                     <br />
  336.                                     前台代码:<br />
  337.                                     <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  338.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  339.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  340.                                         background-color: #eeeeee">
  341.                                         <div>
  342.                                             <span style="color: #0000ff"><span style="color: #008000">//初始化控件,可在此初始化一些控件的属性值,如要设置控件为普通界面,则设置为Skin="skin/default/"</span><br />
  343.                                                 &lt;</span><span style="color: #800000">DNTB:WebEditor
  344.                                             </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="WebEditor1"
  345.                                                 <span style="color: #ff0000">Skin</span><span style="color: #0000ff">="skin/xp/"</span></span><span
  346.                                                     style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  347.                                                         style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">DNTB:WebEditor</span><span
  348.                                                             style="color: #0000ff">&gt;</span></div>
  349.                                     </div>
  350.                                     <br /><hr size="1" style="border-style:dashed;border-color:#999999" align=center />
  351.                                     页面实际使用效果的演示:<br /><br />
  352.                 </asp:View>
  353.                 <asp:View ID="demo2" runat="server">
  354.                                 <fieldset>
  355.                                     <legend>演示说明</legend>&nbsp; &nbsp; DotNetTextBox控件所有在线编辑功能的应用实例,用户可通过配置system_dntb/menuconfig目录下的full.config文件来随心所欲排列及增减各种控件内置的编辑功能,也可以调用插件参数来增加外部插件(plugin)功能!</fieldset>
  356.                                 <br />
  357.                                 页面声明:<br />
  358.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  359.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  360.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  361.                                         background-color: #eeeeee">
  362.                                     <div>
  363.                                         <span style="color: #0000ff">&lt;</span><span style="color: #800000">%@Register </span>
  364.                                         <span style="color: #ff0000">TagPrefix</span><span style="color: #0000ff">="dntb"</span><span
  365.                                                             style="color: #ff0000"> Namespace</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  366.                                                                 style="color: #ff0000"> Assembly</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  367.                                                                     style="color: #ff0000">%</span><span style="color: #0000ff">&gt;</span></div>
  368.                                 </div>
  369.                     <br />
  370.                     后台代码:<br />
  371.                     <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  372.                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  373.                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  374.                         background-color: #eeeeee">
  375.                         <div style="font-family: Courier New">
  376.                             &nbsp; &nbsp; <span style="color: blue">private</span> <span style="color: blue">void</span>
  377.                             ChangedMenuStyle(<span style="color: blue">object</span> sender, System.EventArgs
  378.                             e)
  379.                             <br />
  380.                             &nbsp; &nbsp; {
  381.                             <br />
  382.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//根据选择的值设定菜单配置文件</span>
  383.                             <br />
  384.                             &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.MenuConfig = MenuStyle.SelectedValue;
  385.                             <br />
  386.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">switch</span> (MenuStyle.SelectedValue)
  387.                             <br />
  388.                             &nbsp; &nbsp; &nbsp; &nbsp; {
  389.                             <br />
  390.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">case</span>
  391.                             <span style="color: maroon">"full_style2.config"</span>:
  392.                             <br />
  393.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//为样式二设定合适宽度</span>
  394.                             <br />
  395.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Width = <span
  396.                                 style="color: maroon">575</span>;
  397.                             <br />
  398.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">break</span>;
  399.                             <br />
  400.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">case</span>
  401.                             <span style="color: maroon">"full_style3.config"</span>:
  402.                             <br />
  403.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//为样式三设定合适宽度</span>
  404.                             <br />
  405.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Width = <span
  406.                                 style="color: maroon">610</span>;
  407.                             <br />
  408.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">break</span>;
  409.                             <br />
  410.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">default</span>:
  411.                             <br />
  412.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//为样式一设定合适宽度</span>
  413.                             <br />
  414.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Width = <span
  415.                                 style="color: maroon">655</span>;
  416.                             <br />
  417.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">break</span>;
  418.                             <br />
  419.                             &nbsp; &nbsp; &nbsp; &nbsp; }
  420.                             <br />
  421.                             &nbsp; &nbsp; }</div>
  422.                     </div>
  423.                                 <br />
  424.                                 前台代码:<br />
  425.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  426.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  427.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  428.                                         background-color: #eeeeee">
  429.                                     <div>
  430.                                         <span style="color: #0000ff">
  431.                                             <span style="color: #008000">
  432.                                                 <div>
  433.                                                     <span style="color: #000000"><span style="color: #008000">//样式选择的下拉选择框<br />
  434.                                                     </span>[选择菜单样式]:</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:dropdownlist
  435.                                                     </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="MenuStyle"</span><span
  436.                                                         style="color: #ff0000"> AutoPostBack</span><span style="color: #0000ff">="true"</span><span
  437.                                                             style="color: #ff0000"> OnSelectedIndexChanged</span><span style="color: #0000ff">="ChangedMenuStyle"</span><span
  438.                                                                 style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  439.                                                                     style="color: #0000ff">&gt;</span><span style="color: #000000"><br />
  440.                                                                     </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  441.                                                                     </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="full.config"</span><span
  442.                                                                         style="color: #0000ff">&gt;</span><span style="color: #000000">全功能样式一</span><span style="color: #0000ff">&lt;/</span><span
  443.                                                                             style="color: #800000">asp:ListItem</span><span style="color: #0000ff">&gt;</span><span
  444.                                                                                 style="color: #000000"><br />
  445.                                                                             </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  446.                                                                             </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="full_style2.config"</span><span
  447.                                                                                 style="color: #0000ff">&gt;</span><span style="color: #000000">全功能样式二</span><span style="color: #0000ff">&lt;/</span><span
  448.                                                                                     style="color: #800000">asp:ListItem</span><span style="color: #0000ff">&gt;</span><span
  449.                                                                                         style="color: #000000"><br />
  450.                                                                                     </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  451.                                                                                     </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="full_style3.config"</span><span
  452.                                                                                         style="color: #0000ff">&gt;</span><span style="color: #000000">全功能样式三</span><span style="color: #0000ff">&lt;/</span><span
  453.                                                                                             style="color: #800000">asp:ListItem</span><span style="color: #0000ff">&gt;</span><span
  454.                                                                                                 style="color: #000000"><br />
  455.                                                                                             </span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:DropDownList</span><span
  456.                                                                                                 style="color: #0000ff">&gt;<br />
  457.                                                                                                 ......</span></div>
  458.                                                 //初始化控件,并且初始化菜单配置文件为full.config(全部在线编辑功能的配置,放置在system_dntb/menuconfig/下)</span><br />
  459.                                             </span><span
  460.                                                             style="color: #0000ff">
  461.                                                 <div>
  462.                                                     <span style="color: #0000ff">&lt;</span><span style="color: #800000">DNTB:WebEditor
  463.                                                     </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="WebEditor1"</span><span
  464.                                                             style="color: #ff0000"> MenuConfig</span><span style="color: #0000ff">="full.config"</span><span
  465.                                                                 style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  466.                                                                     style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">DNTB:WebEditor</span><span
  467.                                                                         style="color: #0000ff">&gt;</span></div>
  468.                                             </span></div>
  469.                                 </div>
  470.                                 <br />
  471.                                 <hr size="1" style="border-style:dashed;border-color:#999999" align=center />
  472.                                 页面实际使用效果的演示:<br />
  473.                     <br />
  474.                     <br />
  475.                     <center>
  476.                         [选择菜单样式]:<asp:dropdownlist id="MenuStyle" AutoPostBack="true" OnSelectedIndexChanged="ChangedMenuStyle" runat="server">
  477.                             <asp:ListItem Value="full.config">全功能样式一</asp:ListItem>
  478.                             <asp:ListItem Value="full_style2.config">全功能样式二</asp:ListItem>
  479.                             <asp:ListItem Value="full_style3.config">全功能样式三</asp:ListItem>
  480.                         </asp:DropDownList></center>
  481.                 </asp:View><asp:View ID="demo3" runat="server">
  482.                     <fieldset>
  483.                         <legend>演示说明</legend>&nbsp; &nbsp;&nbsp;为每个用户单独设置上传文件夹及菜单界面的应用演示,通过设置MenuConfig属性(实现不同权限用户显示不同的菜单界面)、设置UploadFolder属性(实现为不同权限用户创建不同的上传文件夹)、设置UploadConfig属性(实现不同权限的用户不同的上传权限),实际应用中可以结合自己项目的用户信息来动态配置这些属性!</fieldset>
  484.                     <br />
  485.                     页面声明:<br />
  486.                     <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  487.                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  488.                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  489.                         background-color: #eeeeee">
  490.                         <div>
  491.                             <span style="color: #0000ff">
  492.                                 <span style="color: #0000ff"></span>&lt;</span><span style="color: #800000">%@Register
  493.                                 </span><span style="color: #ff0000">TagPrefix</span><span style="color: #0000ff">="dntb"</span><span
  494.                                     style="color: #ff0000"> Namespace</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  495.                                         style="color: #ff0000"> Assembly</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  496.                                             style="color: #ff0000">%</span><span style="color: #0000ff">&gt;</span></div>
  497.                     </div>
  498.                     <div>
  499.                     </div>
  500.                     <br />
  501.                     后台代码:<br />
  502.                     <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  503.                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  504.                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  505.                         background-color: #eeeeee">
  506.                         <div style="font-family: Courier New">
  507.                             &nbsp; &nbsp; <span style="color: blue">private</span> <span style="color: blue">void</span>
  508.                             ChangedUser(<span style="color: blue">object</span> sender, System.EventArgs e)
  509.                             <br />
  510.                             &nbsp; &nbsp; {
  511.                             <br />
  512.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//根据用户权限动态修改上传配置文件</span>
  513.                             <br />
  514.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.UploadConfig = selectuser.SelectedItem.Value
  515.                             + <span style="color: maroon">".config"</span>;
  516.                             <br />
  517.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//根据用户权限动态修改上传目录(实际应用中可根据从数据库读取到的用户名来创建目录)</span>
  518.                             <br />
  519.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.UploadFolder = <span style="color: maroon">
  520.                                 "upload/"</span> + selectuser.SelectedItem.Value + <span style="color: maroon">"/"</span>;
  521.                             <br />
  522.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//根据用户权限动态修改菜单配置&nbsp;</span>
  523.                             <br />
  524.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.MenuConfig = selectuser.SelectedItem.Value
  525.                             + <span style="color: maroon">".config"</span>;
  526.                             <br />
  527.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//根据用户权限修改控件适合的界面宽度</span>
  528.                             <br />
  529.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">switch</span> (selectuser.SelectedItem.Value)
  530.                             <br />
  531.                             &nbsp; &nbsp; &nbsp; &nbsp; {
  532.                             <br />
  533.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">case</span>
  534.                             <span style="color: maroon">
  535.                                 "guest"</span>:
  536.                             <br />
  537.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Width = <span
  538.                                 style="color: maroon">525</span>;<br />
  539.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">break</span>;
  540.                             <br />
  541.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">case</span>
  542.                             <span style="color: maroon">
  543.                                 "user"</span>:
  544.                             <br />
  545.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Width = <span
  546.                                 style="color: maroon">570</span>;<br />
  547.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">break</span>;
  548.                             <br />
  549.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">case</span>
  550.                             <span style="color: maroon">
  551.                                 "administrator"</span>:
  552.                             <br />
  553.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Width = <span
  554.                                 style="color: maroon">575</span>;<br />
  555.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">break</span>;
  556.                             <br />
  557.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">default</span>:
  558.                             <br />
  559.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Width = <span
  560.                                 style="color: maroon">590</span>;<br />
  561.                             &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">break</span>;
  562.                             <br />
  563.                             &nbsp; &nbsp; &nbsp; &nbsp; }
  564.                             <br />
  565.                             &nbsp; &nbsp; }</div>
  566.                     </div>
  567.                     <br />
  568.                     前台代码:<br />
  569.                     <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  570.                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  571.                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  572.                         background-color: #eeeeee">
  573.                         <div>
  574.                             <span style="color: #0000ff">
  575.                                 <div>
  576.                                     <span style="color: #000000"><span style="color: #008000">//用户权限选择的下拉选择框</span><br />
  577.                                         <div>
  578.                                             <span style="color: #000000">[切换用户]:</span><span style="color: #ff0000">&amp;nbsp;</span><span
  579.                                                 style="color: #0000ff">&lt;</span><span style="color: #800000">asp:dropdownlist </span>
  580.                                             <span style="color: #ff0000">id</span><span style="color: #0000ff">="selectuser"</span><span
  581.                                                 style="color: #ff0000"> AutoPostBack</span><span style="color: #0000ff">="true"</span><span
  582.                                                     style="color: #ff0000"> OnSelectedIndexChanged</span><span style="color: #0000ff">="ChangedUser"</span><span
  583.                                                         style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  584.                                                             style="color: #ff0000"> Width</span><span style="color: #0000ff">="86px"</span><span
  585.                                                                 style="color: #0000ff">&gt;</span><span style="color: #000000"><br />
  586.                                                                 </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:listitem
  587.                                                                 </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="default"</span><span
  588.                                                                     style="color: #0000ff">&gt;</span><span style="color: #000000">默认用户</span><span style="color: #0000ff">&lt;/</span><span
  589.                                                                         style="color: #800000">asp:listitem</span><span style="color: #0000ff">&gt;</span><span
  590.                                                                             style="color: #000000"><br />
  591.                                                                         </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:listitem
  592.                                                                         </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="administrator"</span><span
  593.                                                                             style="color: #0000ff">&gt;</span><span style="color: #000000">管理员</span><span style="color: #0000ff">&lt;/</span><span
  594.                                                                                 style="color: #800000">asp:listitem</span><span style="color: #0000ff">&gt;</span><span
  595.                                                                                     style="color: #000000"><br />
  596.                                                                                 </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:listitem
  597.                                                                                 </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="user"</span><span
  598.                                                                                     style="color: #0000ff">&gt;</span><span style="color: #000000">普通用户</span><span style="color: #0000ff">&lt;/</span><span
  599.                                                                                         style="color: #800000">asp:listitem</span><span style="color: #0000ff">&gt;</span><span
  600.                                                                                             style="color: #000000"><br />
  601.                                                                                         </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:listitem
  602.                                                                                         </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="guest"</span><span
  603.                                                                                             style="color: #0000ff">&gt;</span><span style="color: #000000">访客</span><span style="color: #0000ff">&lt;/</span><span
  604.                                                                                                 style="color: #800000">asp:listitem</span><span style="color: #0000ff">&gt;</span><span
  605.                                                                                                     style="color: #000000"><br />
  606.                                                                                                 </span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:dropdownlist</span><span
  607.                                                                                                     style="color: #0000ff">&gt;</span></div>
  608.                                     </span><span style="color: #0000ff"></span>
  609.                                 </div>
  610.                                 .......<br />
  611.                                 &lt;</span><span style="color: #800000">DNTB:WebEditor </span><span style="color: #ff0000">
  612.                                     id</span><span style="color: #0000ff">="WebEditor1"</span><span style="color: #ff0000">
  613.                                             runat</span><span style="color: #0000ff">="server"</span><span style="color: #0000ff">&gt;&lt;/</span><span
  614.                                                 style="color: #800000">DNTB:WebEditor</span><span style="color: #0000ff">&gt;</span></div>
  615.                     </div>
  616.                     <br />
  617.                     <hr align="center" size="1" style="border-left-color: #999999; border-bottom-color: #999999;
  618.                         border-top-style: dashed; border-top-color: #999999; border-right-style: dashed;
  619.                         border-left-style: dashed; border-right-color: #999999; border-bottom-style: dashed" />
  620.                     页面实际使用效果的演示:<br />
  621.                     <br />
  622.                     <center>
  623.                         <br />
  624.                         [切换用户]:&nbsp;<asp:DropDownList ID="selectuser" runat="server" AutoPostBack="true"
  625.                             OnSelectedIndexChanged="ChangedUser" Width="86px">
  626.                             <asp:ListItem Value="default">默认用户</asp:ListItem>
  627.                             <asp:ListItem Value="administrator">管理员</asp:ListItem>
  628.                             <asp:ListItem Value="user">普通用户</asp:ListItem>
  629.                             <asp:ListItem Value="guest">访客</asp:ListItem>
  630.                         </asp:DropDownList></center>
  631.             </asp:View>
  632.                 <asp:View ID="demo4" runat="server">
  633.                                 <fieldset>
  634.                                     <legend>演示说明</legend> &nbsp;&nbsp;&nbsp; DotNetTextBox控件提交内容到数据库并读取显示的应用实例,需要注意的是,提交到数据库的内容必须使用Server.HtmlEncode()进行HTML编码,否则如果内容里有非法字符的时候会导致插入数据库失败,另外在读取数据库内容的时候,必须使用Server.HtmlDecode()解码显示(本例子使用的ACCESS数据库名为:demo.mdb)!</fieldset>
  635.                                 <br />
  636.                                 页面声明:<br />
  637.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  638.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  639.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  640.                                         background-color: #eeeeee">
  641.                                     <div>
  642.                                         <span style="color: #0000ff"><span style="color: #008000">//禁用页面验证,避免控件内容提交时出现危险提示,也可在web.config中作全局设置</span><br />
  643.                                             &lt;<span style="color: #800000">%@Page </span><span style="color: #ff0000">Language</span><span
  644.                                                 style="color: #0000ff">="C#"</span><span style="color: #ff0000"> ValidateRequest</span><span
  645.                                                     style="color: #0000ff">="false"</span><span style="color: #ff0000"> ContentType</span><span
  646.                                                         style="color: #0000ff">="text/html"</span><span style="color: #ff0000">%</span><span
  647.                                                             style="color: #0000ff">&gt;</span><br />
  648.                                             &lt;</span><span style="color: #800000">%@Register </span>
  649.                                         <span style="color: #ff0000">TagPrefix</span><span style="color: #0000ff">="dntb"</span><span
  650.                                                             style="color: #ff0000"> Namespace</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  651.                                                                 style="color: #ff0000"> Assembly</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  652.                                                                     style="color: #ff0000">%</span><span style="color: #0000ff">&gt;</span></div>
  653.                                 </div>
  654.                                 <br />
  655.                                 后台代码:<br />
  656.                     <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  657.                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  658.                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  659.                         background-color: #eeeeee">
  660.                         <div style="font-family: Courier New">
  661.                             <span style="color: blue">private</span> <span style="color: blue">void</span> Button1_OnClick(<span
  662.                                 style="color: blue">object</span> sender, System.EventArgs e)
  663.                             <br />
  664.                             {
  665.                             <br />
  666.                             &nbsp; &nbsp; <span style="color: green">//连接数据库</span>
  667.                             <br />
  668.                             &nbsp; &nbsp; System.Data.OleDb.OleDbConnection lj = <span style="color: blue">new</span>
  669.                             System.Data.OleDb.OleDbConnection(<span style="color: maroon">"Provider=Microsoft.Jet.OleDb.4.0;Data
  670.                                 Source="</span> + HttpContext.Current.Server.MapPath(<span style="color: maroon">"Demo.mdb"</span>));
  671.                             <br />
  672.                             &nbsp; &nbsp; <span style="color: green">//特别注意,为了安全需要,这里要用HtmlEncode编码后插入数据库</span>
  673.                             <br />
  674.                             &nbsp; &nbsp; System.Data.OleDb.OleDbCommand ml = <span style="color: blue">new</span>
  675.                             System.Data.OleDb.OleDbCommand(<span style="color: maroon">"insert into temp(contents)
  676.                                 values('"</span> + Server.HtmlEncode(WebEditor1.Text.Replace(<span style="color: maroon">"'"</span>,
  677.                             <span style="color: maroon">"''"</span>)) + <span style="color: maroon">"')"</span>,
  678.                             lj);
  679.                             <br />
  680.                             &nbsp; &nbsp; lj.Open();
  681.                             <br />
  682.                             &nbsp; &nbsp; <span style="color: green">//插入内容到数据库</span>
  683.                             <br />
  684.                             &nbsp; &nbsp; ml.ExecuteNonQuery();&nbsp;<br />
  685.                             &nbsp; &nbsp; <span style="color: green">//读取数据库</span>
  686.                             <br />
  687.                             &nbsp; &nbsp; System.Data.OleDb.OleDbDataAdapter dr = <span style="color: blue">new</span>
  688.                             System.Data.OleDb.OleDbDataAdapter(<span style="color: maroon">"select top 1 contents
  689.                                 from temp order by id desc"</span>, lj);
  690.                             <br />
  691.                             &nbsp; &nbsp; System.Data.DataSet ly = <span style="color: blue">new</span> System.Data.DataSet();
  692.                             <br />
  693.                             &nbsp; &nbsp; dr.Fill(ly);&nbsp;<br />
  694.                             &nbsp; &nbsp; <span style="color: green">//特别注意,这里要用HtmlDecode解码还原后的二进制数据并显示</span>
  695.                             <br />
  696.                             &nbsp; &nbsp; label1.Text = <span style="color: maroon">"&lt;hr&gt;&lt;b&gt;以下是DotNetTextBox控件提交的内容&lt;/b&gt;:&lt;br&gt;"</span>
  697.                             + Server.HtmlDecode(Encoding.Unicode.GetString((<span style="color: blue">byte</span>[])ly.Tables[<span
  698.                                 style="color: maroon">0</span>].Rows[<span style="color: maroon">0</span>][<span
  699.                                     style="color: maroon">"contents"</span>]));&nbsp;<br />
  700.                             &nbsp; &nbsp; lj.Close();&nbsp;<br />
  701.                             }</div>
  702.                     </div>
  703.                     <br />
  704.                                 前台代码:<br />
  705.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  706.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  707.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  708.                                         background-color: #eeeeee">
  709.                                     <div>
  710.                                         <span style="color: #0000ff">
  711.                                             &lt;</span><span style="color: #800000">DNTB:WebEditor </span><span style="color: #ff0000">
  712.                                                 id</span><span style="color: #0000ff">="WebEditor1"</span><span
  713.                                                     style="color: #ff0000">
  714.                                                         runat</span><span style="color: #0000ff">="server"</span><span
  715.                                                         style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">DNTB:WebEditor</span><span
  716.                                                             style="color: #0000ff">&gt;</span></div>
  717.                                 </div>
  718.                                 <br />
  719.                                 <hr size="1" style="border-style:dashed;border-color:#999999" align=center />
  720.                                 页面实际使用效果的演示:<br />
  721.                     <br />
  722.                 </asp:View>
  723.                 <asp:View ID="demo5" runat="server">
  724.                                 <fieldset>
  725.                                     <legend>演示说明</legend>&nbsp; &nbsp;&nbsp;控件自适应多国语言界面及界面皮肤变换的应用演示,控件默认采用检测客户端浏览器语言的方式自动匹配界面语言,如无法找到合适的语言文件则默认使用英文界面,也可以动态设置Languages属性来强制显示特定的语言(见后台代码)!</fieldset>
  726.                                 <br />
  727.                                 页面声明:<br />
  728.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  729.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  730.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  731.                                         background-color: #eeeeee">
  732.                                     <div>
  733.                                         <span style="color: #0000ff">&lt;</span><span style="color: #800000">%@Register
  734.                                                     </span><span style="color: #ff0000">TagPrefix</span><span style="color: #0000ff">="dntb"</span><span
  735.                                                             style="color: #ff0000"> Namespace</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  736.                                                                 style="color: #ff0000"> Assembly</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  737.                                                                     style="color: #ff0000">%</span><span style="color: #0000ff">&gt;</span></div>
  738.                                 </div>
  739.                         <br />
  740.                                 后台代码:<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  741.                                     padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  742.                                     width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  743.                                     background-color: #eeeeee">
  744.                                     <div style="font-family: Courier New">
  745.                                         <div style="font-family: Courier New">
  746.                                             &nbsp; &nbsp; <span style="color: blue">private</span> <span style="color: blue">void</span>
  747.                                             ChangedSkin(<span style="color: blue">object</span> sender, System.EventArgs e)
  748.                                             <br />
  749.                                             &nbsp; &nbsp; {
  750.                                             <br />
  751.                                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//设置新的皮肤风格</span>
  752.                                             <br />
  753.                                             &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Skin = skin.SelectedItem.Value;
  754.                                             <br />
  755.                                             &nbsp; &nbsp; }<br />
  756.                                             <div style="font-family: Courier New">
  757.                                                 &nbsp; &nbsp; <span style="color: blue">private</span> <span style="color: blue">void</span>
  758.                                                 ChangedLng(<span style="color: blue">object</span> sender, System.EventArgs e)
  759.                                                 <br />
  760.                                                 &nbsp; &nbsp; {
  761.                                                 <br />
  762.                                                 &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//通过下拉选择框的值来动态设置控件界面显示特定的语言&nbsp;</span>
  763.                                                 <br />
  764.                                                 &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Languages = lng.SelectedItem.Value;
  765.                                                 <br />
  766.                                                 &nbsp; &nbsp; }</div>
  767.                                         </div>
  768.                                     </div>
  769.                                 </div>
  770.                                 <br />
  771.                                 前台代码:<br />
  772.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  773.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  774.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  775.                                         background-color: #eeeeee">
  776.                                     <div>
  777.                                         <span style="color: #0000ff">
  778.                                             <div>
  779.                                                 <span style="color: #000000"><span style="color: #008000">//语言选择的下拉选择框(控件自带简繁英三种语言界面)</span><br />
  780.                                                     [语言选择]:</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:dropdownlist
  781.                                                     </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="lng"</span><span
  782.                                                         style="color: #ff0000"> AutoPostBack</span><span style="color: #0000ff">="true"</span><span
  783.                                                             style="color: #ff0000"> OnSelectedIndexChanged</span><span style="color: #0000ff">="ChangedLng"</span><span
  784.                                                                 style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  785.                                                                     style="color: #0000ff">&gt;</span><span style="color: #000000"><br />
  786.                                                                     </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:listitem
  787.                                                                     </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="en-us"</span><span
  788.                                                                         style="color: #0000ff">&gt;</span><span style="color: #000000">英文</span><span style="color: #0000ff">&lt;/</span><span
  789.                                                                             style="color: #800000">asp:listitem</span><span style="color: #0000ff">&gt;</span><span
  790.                                                                                 style="color: #000000"><br />
  791.                                                                             </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:listitem
  792.                                                                             </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="zh-cn"</span><span
  793.                                                                                 style="color: #0000ff">&gt;</span><span style="color: #000000">简体中文</span><span style="color: #0000ff">&lt;/</span><span
  794.                                                                                     style="color: #800000">asp:listitem</span><span style="color: #0000ff">&gt;</span><span
  795.                                                                                         style="color: #000000"><br />
  796.                                                                                     </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:listitem
  797.                                                                                     </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="zh-tw"</span><span
  798.                                                                                         style="color: #0000ff">&gt;</span><span style="color: #000000">繁体中文</span><span style="color: #0000ff">&lt;/</span><span
  799.                                                                                             style="color: #800000">asp:listitem</span><span style="color: #0000ff">&gt;</span><span
  800.                                                                                                 style="color: #000000"><br />
  801.                                                                                             </span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:dropdownlist</span><span
  802.                                                                                                 style="color: #0000ff">&gt;<br />
  803.                                                                                                 <span style="color: #008000">//皮肤选择的下拉选择框</span><br />
  804.                                                                                                 <div>
  805.                                                                                                     <span style="color: #000000">[控件皮肤选择]:</span><span style="color: #0000ff">&lt;</span><span
  806.                                                                                                         style="color: #800000">asp:DropDownList </span><span style="color: #ff0000">ID</span><span
  807.                                                                                                             style="color: #0000ff">="skin"</span><span style="color: #ff0000"> runat</span><span
  808.                                                                                                                 style="color: #0000ff">="server"</span><span style="color: #ff0000"> AutoPostBack</span><span
  809.                                                                                                                     style="color: #0000ff">="true"</span><span style="color: #ff0000"> OnSelectedIndexChanged</span><span
  810.                                                                                                                         style="color: #0000ff">="ChangedSkin"</span><span style="color: #0000ff">&gt;</span><span
  811.                                                                                                                             style="color: #000000"><br />
  812.                                                                                                                         </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  813.                                                                                                                         </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="skin/xp/"</span><span
  814.                                                                                                                             style="color: #0000ff">&gt;</span><span style="color: #000000">XP风格</span><span style="color: #0000ff">&lt;/</span><span
  815.                                                                                                                                 style="color: #800000">asp:ListItem</span><span style="color: #0000ff">&gt;</span><span
  816.                                                                                                                                     style="color: #000000"><br />
  817.                                                                                                                                 </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  818.                                                                                                                                 </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="skin/default/"</span><span
  819.                                                                                                                                     style="color: #0000ff">&gt;</span><span style="color: #000000">标准风格</span><span style="color: #0000ff">&lt;/</span><span
  820.                                                                                                                                         style="color: #800000">asp:ListItem</span><span style="color: #0000ff">&gt;</span><span
  821.                                                                                                                                             style="color: #000000"><br />
  822.                                                                                                                                         </span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:DropDownList</span><span
  823.                                                                                                                                             style="color: #0000ff">&gt;</span></div>
  824.                                                                                             </span></div>
  825.                                             .......<br />
  826.                                             <span style="color: #008000">//初始化控件,也可在此初始化Languages属性值为特定语言即可强制让控件显示特定语言(如设置为:Languages="en-us")</span><br />
  827.                                             &lt;</span><span style="color: #800000">DNTB:WebEditor
  828.                                         </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="WebEditor1"</span><span
  829.                                                     style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  830.                                                         style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">DNTB:WebEditor</span><span
  831.                                                             style="color: #0000ff">&gt;</span></div>
  832.                                 </div>
  833.                                 <br />
  834.                                 <hr size="1" style="border-style:dashed;border-color:#999999" align=center />
  835.                                 页面实际使用效果的演示:<br />
  836.                     <br />
  837.                                 <br />        
  838.                                 <center>
  839. [语言选择]:<asp:dropdownlist id="lng" AutoPostBack="true" OnSelectedIndexChanged="ChangedLng" runat="server">
  840. <asp:listitem value="en-us">英文</asp:listitem>
  841. <asp:listitem value="zh-cn">简体中文</asp:listitem>
  842. <asp:listitem value="zh-tw">繁体中文</asp:listitem>
  843. </asp:dropdownlist>&nbsp;[控件皮肤选择]:<asp:DropDownList ID="skin" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ChangedSkin">
  844.                                         <asp:ListItem Value="skin/xp/">XP风格</asp:ListItem>
  845.                                         <asp:ListItem Value="skin/default/">标准风格</asp:ListItem>
  846.                                     </asp:DropDownList></center>
  847.                 </asp:View>
  848.                 <asp:View ID="demo6" runat="server">
  849.                                 <fieldset>
  850.                                     <legend>演示说明</legend>&nbsp; &nbsp;&nbsp;DotNetTextBox控件记忆菜单工具栏拖曳位置的应用演示,通过设置控件的ExpireHours属性来指定可拖曳菜单工具栏位置记忆的失效时间,控件默认失效时间为0(即关闭浏览器窗口后马上失效),此功能将让每个使用者可视化构建自己的个性化在线编辑器!当设定一个以小时为单位的数值后(如设定了ExpireHours=1),编辑器控件可拖曳菜单工具栏位置的变化在一小时内都会被保留并重现!</fieldset>
  851.                                 <br />
  852.                                 页面声明:<br />
  853.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  854.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  855.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  856.                                         background-color: #eeeeee">
  857.                                     <div>
  858.                                         <span style="color: #0000ff">&lt;</span><span style="color: #800000">%@Register </span>
  859.                                         <span style="color: #ff0000">TagPrefix</span><span style="color: #0000ff">="dntb"</span><span
  860.                                                             style="color: #ff0000"> Namespace</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  861.                                                                 style="color: #ff0000"> Assembly</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  862.                                                                     style="color: #ff0000">%</span><span style="color: #0000ff">&gt;</span></div>
  863.                                 </div>
  864.                                 <br />
  865.                                 后台代码:<br />
  866.                     <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  867.                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  868.                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  869.                         background-color: #eeeeee">
  870.                         <div style="font-family: Courier New">
  871.                             &nbsp; &nbsp; <span style="color: blue">private</span> <span style="color: blue">void</span>
  872.                             ChangedSaveTime(<span style="color: blue">object</span> sender, System.EventArgs
  873.                             e)
  874.                             <br />
  875.                             &nbsp; &nbsp; {
  876.                             <br />
  877.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//设置菜单工具栏位置记忆失效时间后(必须是数值类型),每个使用者自行拖动过菜单工具栏的位置都会使用Cookie记忆!</span>
  878.                             <br />
  879.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//此功能将让每个使用者可视化构建自己的个性化编辑器!</span>&nbsp;<br />
  880.                             &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.ExpireHours = Int32.Parse(savetime.SelectedItem.Value);
  881.                             <br />
  882.                             &nbsp; &nbsp; }</div>
  883.                     </div>
  884.                     <br />
  885.                                 前台代码:<br />
  886.                     <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  887.                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  888.                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  889.                         background-color: #eeeeee">
  890.                         <div>
  891.                             <span style="color: #000000"><span style="color: #008000">//菜单位置保存时间的下拉选择框,时间设定只对当前页面里的控件生效</span>
  892.                                 <br />
  893.                                 [菜单位置保存时间(小时)]:</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:dropdownlist
  894.                                 </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="savetime"</span><span
  895.                                     style="color: #ff0000"> AutoPostBack</span><span style="color: #0000ff">="true"</span><span
  896.                                         style="color: #ff0000"> OnSelectedIndexChanged</span><span style="color: #0000ff">="ChangedSaveTime"</span><span
  897.                                             style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  898.                                                 style="color: #0000ff">&gt;</span><span style="color: #000000"><br />
  899.                                                 </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  900.                                                 </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="0"</span><span
  901.                                                     style="color: #0000ff">&gt;</span><span style="color: #000000">立刻失效</span><span style="color: #0000ff">&lt;/</span><span
  902.                                                         style="color: #800000">asp:ListItem</span><span style="color: #0000ff">&gt;</span><span
  903.                                                             style="color: #000000"><br />
  904.                                                         </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  905.                                                         </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="1"</span><span
  906.                                                             style="color: #0000ff">&gt;</span><span style="color: #000000">1小时</span><span style="color: #0000ff">&lt;/</span><span
  907.                                                                 style="color: #800000">asp:ListItem</span><span style="color: #0000ff">&gt;</span><span
  908.                                                                     style="color: #000000"><br />
  909.                                                                 </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  910.                                                                 </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="24"</span><span
  911.                                                                     style="color: #0000ff">&gt;</span><span style="color: #000000">24小时</span><span style="color: #0000ff">&lt;/</span><span
  912.                                                                         style="color: #800000">asp:ListItem</span><span style="color: #0000ff">&gt;</span><span
  913.                                                                             style="color: #000000"><br />
  914.                                                                         </span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:DropDownList</span><span
  915.                                                                             style="color: #0000ff">&gt;</span><span style="color: #000000"><br />
  916.                                                                                 .......<br />
  917.                                                                             </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">DNTB:WebEditor
  918.                                                                             </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="WebEditor1"</span><span
  919.                                                                                 style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  920.                                                                                     style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">DNTB:WebEditor</span><span
  921.                                                                                         style="color: #0000ff">&gt;</span></div>
  922.                     </div>
  923.                                 <br />
  924.                                 <hr size="1" style="border-style:dashed;border-color:#999999" align=center />
  925.                                 页面实际使用效果的演示:<br />
  926.                     <br />
  927.                                 <br />
  928.                                 <center>
  929.                                     [菜单位置保存时间(小时)]:<asp:dropdownlist id="savetime" AutoPostBack="true" OnSelectedIndexChanged="ChangedSaveTime" runat="server">
  930.                                         <asp:ListItem Value="0">立刻失效</asp:ListItem>
  931.                                         <asp:ListItem Value="1">1小时</asp:ListItem>
  932.                                         <asp:ListItem Value="24">24小时</asp:ListItem>
  933.                                     </asp:DropDownList></center>
  934.                 </asp:View>
  935.                 <asp:View ID="demo7" runat="server">
  936.                                 <fieldset>
  937.                                     <legend>演示说明</legend>&nbsp; &nbsp;&nbsp;使用两个以上的DotNetTextBox控件的多控件应用演示,演示中使用者点击提交按键后控件2的内内容将会传送到控件1之中,另外要注意的是页面中的第二个及以上的控件要在初始化属性中设置Child="true"(即只能有一个控件可以不设置Child="true")!</fieldset>
  938.                                 <br />
  939.                                 页面声明:<br />
  940.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  941.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  942.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  943.                                         background-color: #eeeeee">
  944.                                     <div>
  945.                                         <span style="color: #0000ff">&lt;</span><span style="color: #800000">%@Register </span>
  946.                                         <span style="color: #ff0000">TagPrefix</span><span style="color: #0000ff">="dntb"</span><span
  947.                                                             style="color: #ff0000"> Namespace</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  948.                                                                 style="color: #ff0000"> Assembly</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  949.                                                                     style="color: #ff0000">%</span><span style="color: #0000ff">&gt;</span></div>
  950.                                 </div>
  951.                                 <br />
  952.                                 后台代码:<br />
  953.                     <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  954.                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  955.                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  956.                         background-color: #eeeeee">
  957.                         <div style="font-family: Courier New">
  958.                             <span style="color: blue">private</span> <span style="color: blue">void</span> Page_Load(<span
  959.                                 style="color: blue">object</span> sender, System.EventArgs e)
  960.                             <br />
  961.                             {
  962.                             <br />
  963.                             &nbsp; &nbsp; <span style="color: blue">if</span> (!IsPostBack)
  964.                             <br />
  965.                             &nbsp; &nbsp; {
  966.                             <br />
  967.                             &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Text = <span style="color: maroon">"&lt;a href=http://www.aspxcn.com.cn&gt;&lt;img
  968.                                 src='system_dntb/skin/default/img/logo.gif' alt='DotNet中华网版权所有' width=260 height=60
  969.                                 border=0&gt;&lt;/a&gt;"</span>;
  970.                             <br />
  971.                             &nbsp; &nbsp; &nbsp; &nbsp; WebEditor2.Text = <span style="color: maroon">"&lt;a href=http://www.aspxcn.com.cn&gt;&lt;img
  972.                                 src='system_dntb/skin/xp/img/logo.gif' alt='DotNet中华网版权所有' width=260 height=60 border=0&gt;&lt;/a&gt;"</span>;
  973.                             <br />
  974.                             &nbsp; &nbsp; }
  975.                             <br />
  976.                             }<br />
  977.                             <div style="font-family: Courier New">
  978.                                 <span style="color: blue">private</span> <span style="color: blue">void</span> Button1_OnClick(<span
  979.                                     style="color: blue">object</span> sender, System.EventArgs e)
  980.                                 <br />
  981.                                 {
  982.                                 <br />
  983.                                 &nbsp; &nbsp; <span style="color: green">//控件2的内容传送到控件1</span>
  984.                                 <br />
  985.                                 &nbsp; &nbsp; WebEditor1.Text=WebEditor2.Text;
  986.                                 <br />
  987.                                 }</div>
  988.                         </div>
  989.                     </div>
  990.                                 <br />
  991.                                 前台代码:<br />
  992.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  993.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  994.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  995.                                         background-color: #eeeeee">
  996.                                     <div>
  997.                                         <span style="color: #0000ff">
  998.                                             <span style="color: #008000">//设置两个不同ID的DotNetTextBox控件,并且WebEditor2的界面为普通样式(skin/default/)</span><br />
  999.                                             &lt;</span><span style="color: #800000">DNTB:WebEditor </span><span style="color: #ff0000">
  1000.                                                 id</span><span style="color: #0000ff">="WebEditor2"</span><span
  1001.                                                 style="color: #ff0000">
  1002.                                                     Skin</span><span style="color: #0000ff">="skin/default/" <span style="color: #ff0000">
  1003.                                                         Child</span><span style="color: #0000ff">="True"</span></span><span
  1004.                                                     style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  1005.                                                         style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">DNTB:WebEditor</span><span
  1006.                                                             style="color: #0000ff">&gt;<br />
  1007.                                                             &lt;<span style="color: #800000">DNTB:WebEditor </span><span style="color: #ff0000">
  1008.                                                                 id</span><span style="color: #0000ff">="WebEditor1"</span><span
  1009.                                                     style="color: #ff0000">
  1010.                                                                         runat</span><span style="color: #0000ff">="server"</span><span
  1011.                                                         style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">DNTB:WebEditor</span><span
  1012.                                                             style="color: #0000ff">&gt;</span></span></div>
  1013.                                 </div>
  1014.                                 <br />
  1015.                                 <hr size="1" style="border-style:dashed;border-color:#999999" align=center />
  1016.                                 页面实际使用效果的演示:<br /><br />
  1017.                     <br /><center><dntb:WebEditor ID="WebEditor2" runat="server" Focus=false Skin="skin/default/" Child="True" /></center><br />
  1018.                 </asp:View>
  1019.                 <asp:View ID="demo8" runat="server">
  1020.                                 <fieldset>
  1021.                                     <legend>演示说明</legend>&nbsp; &nbsp;&nbsp;控件菜单自定义排列及实时拖曳菜单工具栏的应用演示,通过配置system_dntb/menuconfig/下相应的配置文件,即可构建用户个性化的编辑器控件。配置文件中通过&lt;dragtoolbar&gt;及&lt;dragtoolbarend&gt;配置节,即可配置相应的可拖曳菜单工具栏。配置完成后在控件界面点击<img
  1022.                                         src="system_dntb/img/drag.gif" />图标即实时拖曳菜单工具栏!</fieldset>
  1023.                                 <br />
  1024.                                 页面声明:<br />
  1025.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  1026.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  1027.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  1028.                                         background-color: #eeeeee">
  1029.                                     <div>
  1030.                                         <span style="color: #0000ff">&lt;</span><span style="color: #800000">%@Register </span>
  1031.                                         <span style="color: #ff0000">TagPrefix</span><span style="color: #0000ff">="dntb"</span><span
  1032.                                                             style="color: #ff0000"> Namespace</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  1033.                                                                 style="color: #ff0000"> Assembly</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  1034.                                                                     style="color: #ff0000">%</span><span style="color: #0000ff">&gt;</span></div>
  1035.                                 </div>
  1036.                                 <br />
  1037.                                 后台代码:<br />
  1038.                     <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  1039.                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  1040.                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  1041.                         background-color: #eeeeee">
  1042.                         <div style="font-family: Courier New">
  1043.                             &nbsp; &nbsp; <span style="color: blue">private</span> <span style="color: blue">void</span>
  1044.                             ChangeArray(<span style="color: blue">object</span> sender, System.EventArgs e)
  1045.                             <br />
  1046.                             &nbsp; &nbsp; {
  1047.                             <br />
  1048.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//根据选择的值设定菜单配置文件</span>
  1049.                             <br />
  1050.                             &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.MenuConfig = selectArray.SelectedValue;
  1051.                             <br />
  1052.                             &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//设定控件宽度</span>
  1053.                             <br />
  1054.                             &nbsp; &nbsp; &nbsp; &nbsp; WebEditor1.Width = <span style="color: maroon">600</span>;
  1055.                             <br />
  1056.                             &nbsp; &nbsp; }</div>
  1057.                     </div>
  1058.                                 <br />
  1059.                                 前台代码:<br />
  1060.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  1061.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  1062.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  1063.                                         background-color: #eeeeee">
  1064.                                     <div>
  1065.                                         <span style="color: #0000ff">
  1066.                                             <div>
  1067.                                                 <span style="color: #000000"><span style="color: #008000">//排列样式的下拉选择框</span><br />
  1068.                                                     [选择排列样式]:<span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:dropdownlist
  1069.                                                     </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="selectArray"</span><span
  1070.                                                         style="color: #ff0000"> AutoPostBack</span><span style="color: #0000ff">="true"</span><span
  1071.                                                             style="color: #ff0000"> OnSelectedIndexChanged</span><span style="color: #0000ff">="ChangeArray"</span><span
  1072.                                                                 style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  1073.                                                                     style="color: #0000ff">&gt;</span><span style="color: #000000"><br />
  1074.                                                                     </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  1075.                                                                     </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="default_style1.config"</span><span
  1076.                                                                         style="color: #0000ff">&gt;</span><span style="color: #000000">单列顶端工具栏的排列</span><span
  1077.                                                                             style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:ListItem</span><span
  1078.                                                                                 style="color: #0000ff">&gt;</span><span style="color: #000000"><br />
  1079.                                                                                 </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  1080.                                                                                 </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="default_style2.config"</span><span
  1081.                                                                                     style="color: #0000ff">&gt;</span><span style="color: #000000">三列顶端工具栏的排列</span><span
  1082.                                                                                         style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:ListItem</span><span
  1083.                                                                                             style="color: #0000ff">&gt;</span><span style="color: #000000"><br />
  1084.                                                                                             </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  1085.                                                                                             </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="default_style3.config"</span><span
  1086.                                                                                                 style="color: #0000ff">&gt;<span style="color: #000000">带隐藏工具栏的排列</span></span><span style="color: #000000"></span><span
  1087.                                                                                                     style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:ListItem</span><span
  1088.                                                                                                         style="color: #0000ff">&gt;<br />
  1089.                                                                                                     </span><span style="color: #000000"><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="default_style4.config"</span><span
  1090.                                                                                                 style="color: #0000ff">&gt;<span
  1091.                                                                                                                 style="color: #000000">带左侧工具栏的排列</span><span
  1092.                                                                                                     style="color: #0000ff"></span></span><span style="color: #000000"></span><span
  1093.                                                                                                     style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:ListItem</span><span
  1094.                                                                                                         style="color: #0000ff">&gt;</span><br />
  1095.                                                                                                         </span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:DropDownList</span><span
  1096.                                                                                                             style="color: #0000ff">&gt;</span></span><span
  1097.                                                                                                 style="color: #0000ff"></span></div>
  1098.                                             .......<br />
  1099.                                             <span style="color: #008000"></span>
  1100.                                             &lt;</span><span style="color: #800000">DNTB:WebEditor </span><span style="color: #ff0000">
  1101.                                                 id</span><span style="color: #0000ff">="WebEditor1" <span style="color: #ff0000">MenuConfig</span><span style="color: #0000ff">=</span>"default_style1.config"<span
  1102.                                                     style="color: #ff0000"></span></span><span
  1103.                                                     style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  1104.                                                         style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">DNTB:WebEditor</span><span
  1105.                                                             style="color: #0000ff">&gt;</span></div>
  1106.                                 </div>
  1107.                                 <br />
  1108.                                 <hr size="1" style="border-style:dashed;border-color:#999999" align=center />
  1109.                                 页面实际使用效果的演示:<br /><br />
  1110.                     <br /><center>
  1111.                     [选择排列样式]:<asp:dropdownlist id="selectArray" AutoPostBack="true" OnSelectedIndexChanged="ChangeArray" runat="server">
  1112.                         <asp:ListItem Value="default_style1.config">单列顶端工具栏的排列</asp:ListItem>
  1113.                         <asp:ListItem Value="default_style2.config">三列顶端工具栏的排列</asp:ListItem>
  1114.                         <asp:ListItem Value="default_style3.config">带隐藏工具栏的排列</asp:ListItem>
  1115.                         <asp:ListItem Value="default_style4.config">带左侧工具栏的排列</asp:ListItem>
  1116.                     </asp:DropDownList></center></asp:View>
  1117.                     <asp:View ID="demo9" runat="server">
  1118.                                 <fieldset>
  1119.                                     <legend>演示说明</legend>&nbsp; &nbsp;&nbsp;控件提交内容后自动及手动分页的应用演示,通过WebEditor1.getManualPage(手动分页)及WebEditor1.getAutoPage(自动分页)两个属性来实现内容的手动及自动分页储存!其中手动分页是通过控件中<img
  1120.                                         src="system_dntb/skin/XP/img/pageoutput.gif" />插入内容分页符来作为分页的标识,自动分页则通过设定PageLength属性来界定分页的最大字符长度(默认为2000字符分一页)!</fieldset>
  1121.                                 <br />
  1122.                                 页面声明:<br />
  1123.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  1124.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  1125.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  1126.                                         background-color: #eeeeee">
  1127.                                     <div>
  1128.                                         <span style="color: #0000ff">&lt;</span><span style="color: #800000">%@Register </span>
  1129.                                         <span style="color: #ff0000">TagPrefix</span><span style="color: #0000ff">="dntb"</span><span
  1130.                                                             style="color: #ff0000"> Namespace</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  1131.                                                                 style="color: #ff0000"> Assembly</span><span style="color: #0000ff">="DotNetTextBox"</span><span
  1132.                                                                     style="color: #ff0000">%</span><span style="color: #0000ff">&gt;</span></div>
  1133.                                 </div>
  1134.                                 <br />
  1135.                                 后台代码:<br />
  1136.                         <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  1137.                             padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  1138.                             width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  1139.                             background-color: #eeeeee">
  1140.                             <div style="font-family: Courier New">
  1141.                                 &nbsp; &nbsp; <span style="color: blue">private</span> <span style="color: blue">void</span>
  1142.                                 Button1_OnClick(<span style="color: blue">object</span> sender, System.EventArgs
  1143.                                 e)
  1144.                                 <br />
  1145.                                 &nbsp; &nbsp; {
  1146.                                 <br />
  1147.                                 &nbsp; &nbsp; &nbsp; &nbsp; ArrayList content;
  1148.                                 <br />
  1149.                                 &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">if</span> (selectPageOutput.SelectedItem.Value
  1150.                                 == <span style="color: maroon">"manual"</span>)
  1151.                                 <br />
  1152.                                 &nbsp; &nbsp; &nbsp; &nbsp; {
  1153.                                 <br />
  1154.                                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//得到手动分页内容的分页集合,在控件编辑框中插入内容分页符作为分页标准!&nbsp;</span>
  1155.                                 <br />
  1156.                                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; content = WebEditor1.getManualPage;
  1157.                                 <br />
  1158.                                 &nbsp; &nbsp; &nbsp; &nbsp; }
  1159.                                 <br />
  1160.                                 &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">else</span>
  1161.                                 <br />
  1162.                                 &nbsp; &nbsp; &nbsp; &nbsp; {
  1163.                                 <br />
  1164.                                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//得到自动分页内容的分页集合,以控件的WebEditor1.PageLength属性设定的最大分页字符数作为分页标准&nbsp;</span>
  1165.                                 <br />
  1166.                                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; content = WebEditor1.getAutoPage;
  1167.                                 <br />
  1168.                                 &nbsp; &nbsp; &nbsp; &nbsp; }
  1169.                                 <br />
  1170.                                 &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//判断提交内容的分页数是否大于1&nbsp;&nbsp;&nbsp;</span>
  1171.                                 <br />
  1172.                                 &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">if</span> (content.Count &gt;
  1173.                                 <span style="color: maroon">1</span>)
  1174.                                 <br />
  1175.                                 &nbsp; &nbsp; &nbsp; &nbsp; {
  1176.                                 <br />
  1177.                                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//历遍集合将分页内容分篇添加到数据库&nbsp;&nbsp;&nbsp;</span>
  1178.                                 <br />
  1179.                                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">for</span> (<span
  1180.                                     style="color: blue">int</span> i = <span style="color: maroon">0</span>; i &lt;
  1181.                                 content.Count; i++)
  1182.                                 <br />
  1183.                                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
  1184.                                 <br />
  1185.                                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//此处可通过content[i].ToString()将相应分页内容添加到数据库
  1186.                                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span>
  1187.                                 <br />
  1188.                                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
  1189.                                 <br />
  1190.                                 &nbsp; &nbsp; &nbsp; &nbsp; }
  1191.                                 <br />
  1192.                                 &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: blue">else</span>
  1193.                                 <br />
  1194.                                 &nbsp; &nbsp; &nbsp; &nbsp; {
  1195.                                 <br />
  1196.                                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: green">//如果分页小于1,则正常通过WebEditor1.Text添加内容到数据库&nbsp;&nbsp;&nbsp;</span>
  1197.                                 <br />
  1198.                                 &nbsp; &nbsp; &nbsp; &nbsp; }
  1199.                                 <br />
  1200.                                 &nbsp; &nbsp; }</div>
  1201.                         </div>
  1202.                                 <br />
  1203.                                 前台代码:<br />
  1204.                                 <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid;
  1205.                                         padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid;
  1206.                                         width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid;
  1207.                                         background-color: #eeeeee">
  1208.                                     <div>
  1209.                                         <span style="color: #0000ff">
  1210.                                             <div>
  1211.                                                 <span style="color: #000000"><span style="color: #008000">//分页类型的下拉选择框</span><br />
  1212.                                                     [选择分页类型]:<span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:dropdownlist
  1213.                                                     </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="selectPageOutput"</span><span style="color: #0000ff"><span
  1214.                                                         style="color: #ff0000"> </span></span><span> </span><span
  1215.                                                                 style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  1216.                                                                     style="color: #0000ff">&gt;</span><span style="color: #000000"><br />
  1217.                                                                     </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  1218.                                                                     </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="manual"</span><span
  1219.                                                                         style="color: #0000ff">&gt;</span><span style="color: #000000">手动分页</span><span
  1220.                                                                             style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:ListItem</span><span
  1221.                                                                                 style="color: #0000ff">&gt;</span><span style="color: #000000"><br />
  1222.                                                                                 </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">asp:ListItem
  1223.                                                                                 </span><span style="color: #ff0000">Value</span><span style="color: #0000ff">="auto"</span><span
  1224.                                                                                     style="color: #0000ff">&gt;</span><span style="color: #000000">自动分页</span><span
  1225.                                                                                         style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:ListItem</span><span
  1226.                                                                                             style="color: #0000ff">&gt;</span><span style="color: #000000"><br />
  1227.                                                                                                         </span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">asp:DropDownList</span><span
  1228.                                                                                                             style="color: #0000ff">&gt;</span></span><span
  1229.                                                                                                 style="color: #0000ff"></span></div>
  1230.                                             .......<br />
  1231.                                             <span style="color: #008000">//分页类型的下拉选择框</span><br />
  1232.                                             <span style="color: #008000"></span>
  1233.                                             &lt;</span><span style="color: #800000">DNTB:WebEditor </span><span style="color: #ff0000">
  1234.                                                 id</span><span style="color: #0000ff">="WebEditor1" <span style="color: #ff0000">MenuConfig</span><span style="color: #0000ff">=</span>"Pageoutput.config"</span><span
  1235.                                                     style="color: #ff0000"> runat</span><span style="color: #0000ff">="server"</span><span
  1236.                                                         style="color: #0000ff">&gt;&lt;/</span><span style="color: #800000">DNTB:WebEditor</span><span
  1237.                                                             style="color: #0000ff">&gt;</span></div>
  1238.                                 </div>
  1239.                                 <br />
  1240.                                 <hr size="1" style="border-style:dashed;border-color:#999999" align=center />
  1241.                                 页面实际使用效果的演示:<br /><br />
  1242.                     <br /><center>
  1243.                         [选择分页类型]:<asp:dropdownlist id="selectPageOutput" AutoPostBack="true" OnSelectedIndexChanged="ChangeArray" runat="server">
  1244.                         <asp:ListItem Value="manual">手动分页</asp:ListItem>
  1245.                         <asp:ListItem Value="auto">自动分页</asp:ListItem>
  1246.                     </asp:DropDownList></center></asp:View>
  1247.             </asp:MultiView>
  1248.              <br />
  1249.             <center>
  1250.             <dntb:WebEditor ID="WebEditor1" runat="server" Focus=false /><br />
  1251.                 <br />
  1252.                                               <asp:Button id="Button1"  OnClick="Button1_OnClick" runat="server" Text="提交内容"></asp:Button>
  1253.           <asp:Button id="Button2"  OnClick="Button2_OnClick" runat="server" Text="清空内容"></asp:Button>
  1254.                                     </center>
  1255.             </TD></TR></TABLE></div>
  1256.             <asp:Label ID="label1" runat="server"></asp:Label><br />
  1257.             <br />
  1258.             <br />
  1259.             <br />
  1260.             <table bgcolor="#006699" border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 30px">
  1261.                 <tr>
  1262.                     <td>
  1263.                         <img alt="DotNet中华网" border="0" src="system_dntb/skin/default/img/aspnet2.gif" />
  1264.                         <a href="http://www.aspxcn.com.cn"><font color="#000000"><span><span style="color: #ffffff">
  1265.                             <span style="font-family: Arial"><span style="font-size: 12pt">©</span> </span>2003-2008
  1266.                             DotNetTextBox™ v5.0 DotNet中华网工作室版权所有</span></span></font></a><span style="color: #ffffff">
  1267.                                 网站备案:</span><a href="http://www.miibeian.gov.cn" target="_blank"><span style="color: #ffffff;
  1268.                                     text-decoration: underline">粤ICP备06045090号</span></a></td>
  1269.                 </tr>
  1270.             </table>
  1271.         </DIV></form></center>
  1272. </body>
  1273. </html>