如何在标签中添加Html标签,我希望它在文本框上分配。 [英] How To Add Html Tag In Label And I Want It To Assign On Textbox.

查看:556
本文介绍了如何在标签中添加Html标签,我希望它在文本框上分配。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将html标签添加到标签或文本框。



例如。



txtbody.Text =< html>< body>

HI ..

i want to add html tag to label or textbox.

for eg.

txtbody.Text="<html><body>

HI..

你好吗?

推荐答案

请查看此链接



http://forums.asp.net/t/1576091.aspx?Fill+Label+with+HTML+Tags [ ^ ]



希望它会有所帮助..
Please check this link

http://forums.asp.net/t/1576091.aspx?Fill+Label+with+HTML+Tags[^]

Hope it will help..


您可以使用 HTML编辑器控件 [ ^ ]。



上面的链接适用于AjaxToolkit,但还有一些功能和复杂性或多或少。



如果这有帮助,请花时间接受解决方案。谢谢。
You could use HTML Editor control[^].

The link above is for AjaxToolkit, but there are others with more or less functionality and complexity.

If this helps please take time to accept the solution. Thank you.






使用\ n而不是html。



Hi,

Use \n instead of html.

TextBox1.Text = "HI..\nHow are you?";





和您的信息使用多行文本框。



And For Your Information Use Multiline Textbox.


这篇关于如何在标签中添加Html标签,我希望它在文本框上分配。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆