demo_all_vb.aspx
上传用户:lanchensha
上传日期:2022-02-27
资源大小:7530k
文件大小:3k
- <%@Page Language="vb" ValidateRequest="false" ContentType="text/html"%>
- <%@Register TagPrefix="dntb" Namespace="DotNetTextBox" Assembly="DotNetTextBox"%>
- <script runat="server" language="vb">
- Private Sub Page_Load(obj As object,e As eventargs)
- if Not IsPostBack then
- WebEditor1.Text = "<a href=http://www.aspxcn.com.cn><img src='system_dntb/skin/xp/img/logo.gif' alt='DotNet中华网版权所有' width=260 height=60 border=0></a>"
- end if
- End Sub
- Private Sub Button1_OnClick(ByVal obj As Object, ByVal e As EventArgs)
- label1.Text = "<hr><b>以下是DotNetTextBox控件提交的内容</b>:<br>" + WebEditor1.Text
- End Sub
- Private Sub Button2_OnClick(ByVal obj As Object, ByVal e As EventArgs)
- WebEditor1.Text = ""
- End Sub
-
- Private Sub ChangedMenu(obj As object,e As eventargs)
- WebEditor1.MenuConfig = menu.SelectedItem.Value
- WebEditor1.Width = 640
- WebEditor1.LeftAreaWidth = "45%"
- WebEditor1.RightAreaWidth = "55%"
- End Sub
- </script>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>演示:全部内置功能的应用实例((VB.NET)</title>
- <style type="text/css">
- <!--
- body {
- font-size: 9pt;
- }
- hr {
- border: dotted #AFAFAF;
- }
- input {
- font-size: 9pt;
- border: 1px ridge #999999;
- background-color: #FFFFFF;
- cursor:pointer;
- }
- TABLE {
- FONT: 9pt 宋体,Verdana,Arial
- }
- -->
- </style>
- <link href="system_dntb/skin/xp/toolbar.css" rel="stylesheet" type="text/css" />
- <link href="system_dntb/skin/xp/toolbar.css" rel="stylesheet" type="text/css" />
- </head>
- <body >
- <table align=center width="555">
- <tr>
- <td valign="top">
- <fieldset>
- <legend>演示说明</legend> 本例子演示了DotNetTextBox控件所有内置功能的应用,用户可通过配置system_dntb/menuconfig目录下的all.config文件来随心所欲排列及增减各种控件内置的编辑功能,也可以调用插件参数来增加外部插件(plugin)功能,此演示提供了两种全功能的排列样式!</fieldset>
- </td>
- </tr>
- </table>
- <br />
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td align="center"><form id="Form1" runat="server">
- <p align="center">
- [排列样式]:<asp:DropDownList ID="menu" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ChangedMenu">
- <asp:ListItem Value="all.config">两行排列</asp:ListItem>
- <asp:ListItem Value="all_3row.config">三行排列</asp:ListItem>
- </asp:DropDownList><br />
- <br />
- <DNTB:WebEditor id="WebEditor1" Width="780px" Skin="skin/xp/" MenuConfig="all.config" runat="server" LeftAreaAlign="center" LeftAreaWidth="38%" RightAreaWidth="62%"></DNTB:WebEditor> </p>
- <p align="center">
- <asp:Button id="Button1" OnClick="Button1_OnClick" runat="server" Text="提交内容"></asp:Button>
- <asp:Button id="Button2" OnClick="Button2_OnClick" runat="server" Text="清空内容"></asp:Button>
- </p>
- </form></td>
- </tr>
- </table>
- <asp:label runat="server" ID="label1"></asp:label>
- </body>
- </html>