请问htmltextbox是如何使用的?

解决方案 »

  1.   

    <input type="text" runat="server" id="textbox1">
      

  2.   

    就是在原来<input type="text">里面加上runat="server"就行了,<input type="text" runat="server" id="**" />
      

  3.   

    我不是说<Input type="text">这个控件。
    是HtmlTextBox控件。不同的。
      

  4.   

    在工具栏里添加,然后拖过来就直接用了。
    HtmlTextBox1.Text 就能取到值了
      

  5.   

    特点:超级灵活的配置,内置有三中模式:默认,最小化,最大化(显示所有功能按钮),或利用自定义模式:1)利用配置字符串 ,如 ConfigString=”Cut,Copy” , 则只显示剪切,复制按钮
    所有可采用的配置有:Cut,Copy,Paste,Delete,Undo,Redo,Print,Bold,Italic,Underline,Strikethrough,Superscript,Subscript,InsertImage,CreateLink,Unlink,FontForeColorPicker,FontBackColorPicker,RemoveFormat,FormatBlock,FontName,FontSize|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull,insertunorderedlist,insertorderedlist,Indent,Outdent,inserthorizontalrule,InsertDate,InsertTime,WordCount,WordClean,UploadPanel,SourceViewer
    其中“|”表示换到下一个工具栏显示
    2)利用子控件,即将HtmlTextBox已实现的子控件加入到HtmlTextBox标签内部,或外部:
    子控件示例: <htb:htmltextbox id="HtmlTextBox2" runat="server" StyleConfig="CoolBlue" ConfigString="Blod,RichTextBox" ConfigMode="None" Height="160px" Width="288px">
    <htb:ToolBar Runat="server" id=" ToolBar 1">
    <htb:sourceviewer id="Sourceviewer1" runat="server"></htb:sourceviewer>
    </htb:ToolBar>
    <htb:RichTextBox id="Sourceviewer4" runat="server"></htb:RichTextBox>
    </htb:htmltextbox>
     
    <htb:UploadPanel id="Uploadpanel2" runat="server" ConfigMode="Lovely" TopContainerID="HtmlTextBox2"  Width="920px"></htb:UploadPanel> 如上:sourceviewer , RichTextBox加入HtmlTextBox内部, UploadPanel置于HtmlTextBox标签外部,通过TopContainerID与HtmlTextBox关联具体功能及属性查看控件文档效果示例:
    1) 全部功能按钮:
     
    Code:
    <htb:htmltextbox id="HtmlTextBox3" runat="server" ConfigMode="EnableAll" Width="920px"></htb:htmltextbox>
    2)默认模式:
     
    Code:
    <htb:htmltextbox id="HtmlTextBox3" runat="server" ConfigMode="Default" Width="920px"></htb:htmltextbox>
    3)最小模式:
     
    Code:
    <htb:htmltextbox id="HtmlTextBox3" runat="server" ConfigMode=" Minimal" Width="920px"></htb:htmltextbox>4) 通过子控件自定义: 
     
    Code:
    <htb:htmltextbox id="HtmlTextBox2" runat="server" StyleConfig="CoolBlue" ConfigString="Blod,RichTextBox" ConfigMode="None" Height="160px" Width="288px">
    <htb:ToolBar Runat="server" id=" ToolBar 1">
    <htb:sourceviewer id="Sourceviewer1" runat="server"></htb:sourceviewer>
    </htb:ToolBar>
    <htb:RichTextBox id="Sourceviewer4" runat="server"></htb:RichTextBox>
    </htb:htmltextbox>
     
    <htb:UploadPanel id="Uploadpanel2" runat="server" ConfigMode="Lovely" TopContainerID="HtmlTextBox2"  Width="920px"></htb:UploadPanel>
    5)通过配置字符串自定义:
     
    Code:
    <htb:htmltextbox id="HtmlTextBox2" runat="server" ConfigMode="ConfigString" StyleConfig="CoolBlue" ConfigString="Cut,Copy,Paste,Delete|Undo,Redo,Print,Bold,Italic,Underline|Strikethrough,Superscript,Subscript|InsertImage,CreateLink,Unlink">
    </htb:htmltextbox>