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

编辑器/阅读器

开发平台:

C#

  1. <%@Page Language="vb" ValidateRequest="false" ContentType="text/html"%>
  2. <%@Register TagPrefix="dntb" Namespace="DotNetTextBox" Assembly="DotNetTextBox"%>
  3. <script runat="server" language="vb">
  4. Private Sub Page_Load(obj As object,e As eventargs)
  5.         if Not IsPostBack then
  6. 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>"
  7. WebEditor2.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>"
  8. end if
  9. End Sub
  10.     Private Sub Button1_OnClick(ByVal obj As Object, ByVal e As EventArgs)
  11.         WebEditor2.Text = WebEditor1.Text
  12.     End Sub
  13.     Private Sub Button2_OnClick(ByVal obj As Object, ByVal e As EventArgs)
  14.         WebEditor1.Text = ""
  15.     End Sub
  16. </script>
  17. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  18. <html xmlns="http://www.w3.org/1999/xhtml" >
  19. <head>
  20. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  21. <title>演示:多控件应用实例(VB.NET)</title>
  22. <style type="text/css">
  23. <!--
  24. body {
  25. font-size: 9pt;
  26. }
  27. hr {
  28. border: dotted #AFAFAF;
  29. }
  30. input {
  31. font-size: 9pt;
  32. border: 1px ridge #999999;
  33. background-color: #FFFFFF;
  34. cursor:pointer;
  35. }
  36. TABLE {
  37. FONT: 9pt 宋体,Verdana,Arial
  38. }
  39. -->
  40. </style>
  41. </head>
  42. <body>
  43.     <table width="555" align="center">
  44.         <tr>
  45.             <td valign="top">
  46.                 <fieldset>
  47.                     <legend>演示说明</legend>&nbsp; &nbsp; 本例子演示了如何使用两个以上的DotNetTextBox控件,并且控件之间互相传递数据!</fieldset>
  48.             </td>
  49.         </tr>
  50.     </table>
  51.     <br />
  52. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  53.   <tr>
  54.     <td align="center"><form id="Form1" runat="server">
  55.         <p align="center"><DNTB:WebEditor id="WebEditor1" Skin="skin/default/" runat="server"></DNTB:WebEditor> </p>
  56.         <p align="center"><DNTB:WebEditor id="WebEditor2" Child=True Skin="skin/xp/" runat="server"></DNTB:WebEditor> </p>
  57.         <p align="center"> 
  58.           <asp:Button id="Button1" CssClass="input" OnClick="Button1_OnClick" runat="server" Text="提交内容"></asp:Button>
  59.           <asp:Button id="Button2" CssClass="input" OnClick="Button2_OnClick" runat="server" Text="清空内容"></asp:Button>
  60.         </p>
  61.       </form></td>
  62.   </tr>
  63. </table>
  64. </body>
  65. </html>