default.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:3k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" ValidateRequest=false Trace="false" %>
  2. <%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
  3. <script runat="server">
  4. protected void Page_Load(Object Src, EventArgs E) {
  5. if (!IsPostBack) {
  6. FreeTextBox1.Text = "<p><a href="http://www.freetextbox.com" target="_blank">FreeTextBox</a></p><p>some <b>Bold</b> and <u>underlined</u> and <font color="#008000">colored</font> text<p><ul><li>bulleted list 1</li></ul><form><table border=1><tr><td>Name</td><td><input type=text></td></tr><tr><td>Secure</td><td><input type=checkbox></td></tr><tr><td>Category</td><td><select><option>Shopping</option><option>Clothes</option></select></td></tr></table></form>";
  7. }
  8. }
  9. protected void SaveButton_Click(Object Src, EventArgs E) {
  10. Output.Text = FreeTextBox1.Text;
  11. }
  12. </script>
  13. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  14. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  15. <head>
  16. <title>All Features</title>
  17. <script>
  18. </script>
  19. </head>
  20. <body>
  21.     <form id="Form1" runat="server">
  22.     
  23.      <h2>All buttons and drop downs enabled</h2>
  24. <div>
  25.     
  26.               
  27. <FTB:FreeTextBox id="FreeTextBox1" OnSaveClick="SaveButton_Click" 
  28. Focus="true"
  29. SupportFolder="~/aspnet_client/FreeTextBox/"
  30. JavaScriptLocation="ExternalFile" 
  31. ButtonImagesLocation="ExternalFile"
  32. ToolbarImagesLocation="ExternalFile"
  33. ToolbarStyleConfiguration="Office2000"
  34. toolbarlayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage|Cut,Copy,Paste,Delete;Undo,Redo,Print,Save|SymbolsMenu,StylesMenu,InsertHtmlMenu|InsertRule,InsertDate,InsertTime|InsertTable,EditTable;InsertTableRowAfter,InsertTableRowBefore,DeleteTableRow;InsertTableColumnAfter,InsertTableColumnBefore,DeleteTableColumn|InsertForm,InsertTextBox,InsertTextArea,InsertRadioButton,InsertCheckBox,InsertDropDownList,InsertButton|InsertDiv,EditStyle,InsertImageFromGallery,Preview,SelectAll,WordClean,NetSpell"
  35. runat="Server"
  36. GutterBackColor="red"
  37. DesignModeCss="designmode.css"  
  38. />
  39. <asp:Button id="SaveButton" Text="Save" onclick="SaveButton_Click" runat="server" />
  40. </div>
  41. <div>
  42. <asp:Literal id="Output" runat="server" />
  43. </div>
  44. </form>
  45. </body>
  46. </html>