文本框中的HTML属性 [英] HTML propery in Textbox
本文介绍了文本框中的HTML属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何为多行文本框启用HTML属性?
我想在文本框中使用html标签.
Hi,
How to enable HTML property to a multiline textbox?
I want to use html tags in my text box. How can it be possible?
推荐答案
在您的页面中,您设置了<%@页面语言="C#" AutoEventWireup ="true" CodeFile ="Default.aspx". cs"Inherits =" _ Default" ValidateRequest =" false"%>
在.aspx页面顶部设置< b> ValidateRequest ="false"</b>像上面一样.
In your page you set <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ValidateRequest="false" %>
in apove .aspx page set <b>ValidateRequest="false"</b> like above.
如果您正在寻找长度属性,那么我必须告诉您,当TextMode = MultiLine时,TextBox的MaxLength不起作用.
If you are looking for length properties then I must tell you that TextBox''s MaxLength does not work when TextMode=MultiLine.
输入类型为Text的mutlitline文本框没有属性,在html中,我们有一个单独的标记,称为
这是示例:
Hi,
There is no property for mutlitline textbox for input type Text, in html we have seperate tag called
here is the example:
<textarea rows="2" cols="20">
Hi this is tajuddin software developer
Hi this is tajuddin software developer
</textarea>
这篇关于文本框中的HTML属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文