请问htmltextbox是如何使用的? 请问htmltextbox是如何使用的? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <input type="text" runat="server" id="textbox1"> 就是在原来<input type="text">里面加上runat="server"就行了,<input type="text" runat="server" id="**" /> 我不是说<Input type="text">这个控件。是HtmlTextBox控件。不同的。 在工具栏里添加,然后拖过来就直接用了。HtmlTextBox1.Text 就能取到值了 特点:超级灵活的配置,内置有三中模式:默认,最小化,最大化(显示所有功能按钮),或利用自定义模式: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> 富士康龙华园区南二门在哪里?我要去面试 ..... [玻璃鱼V]推荐几本设计模式方面的书 Attributes中,&变成了&的问题 大家帮忙看看 csdn的html页面显示登录的用户名是如何实现的 怎么让一浮点数只保留两位小数 response.rediret 我在web程序里,保护Excel单元格,但是出错!谁知道? 关于Session_End的触发 同一目录下的asp程序能否读取asp.net程序赋予的session变量值? (在线高分求助)如何让填充了数据的表格从下往上走,就象跑马灯试的。 求助:在.net里如何在页面传值呀?谢谢!! Xml文件的操作新问题!!!
是HtmlTextBox控件。不同的。
HtmlTextBox1.Text 就能取到值了
所有可采用的配置有: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>