如何在标签中显示多行数据 [英] How to show multiline data in a lable
本文介绍了如何在标签中显示多行数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,
我已经取了文本框并将多行线路属性设置为真。
这个数据被插入到数据库表中。
然后这个数据绑定到label.This标签在repeator控件中。
我想逐行显示标签中的数据。
例如。
在多行文本框中输入此数据,例如。
1)您叫什么名字?
2)您的学院名称是什么?
我想在标签上也显示相同的内容。如上所述。
请先生,请给我解决这个问题的方法。
Sir,
I have taken text box and set the multiline line property true.
this data is inserted into database table.
Then this data is bind to label.This lable in the repeator control.
I want to display data in label line by line .
For eg.
Enter this data in multiline text box like .
1)What is your name?
2)What is your College name?
I want to display same in label also. as per above .
Please Sir ,Give me the solution for this problem.
推荐答案
请参阅下文链接
http://stackoverflow.com/questions/6692168/bind-multiple-lines-of-text-to-a-label [ ^ ]
Refer below link
http://stackoverflow.com/questions/6692168/bind-multiple-lines-of-text-to-a-label[^]
使用Enviroment.Newline to make标签显示多行
use Enviroment.Newline to make label appear with multiple lines
为ur标签提供一些固定的宽度和高度,例如,
< asp:标签ID =lblnamerunat =serverText =NameWidth =200pxHeight =100px/>
或使用< br>喜欢
Label1.Text =aaaa
bbbb
cccc
;
Give some fixed Width and height to ur label for example,
< asp:Label ID="lblname" runat="server" Text="Name" Width="200px" Height="100px"/>
or use
like
Label1.Text = "aaaa
bbbb
cccc
";
这篇关于如何在标签中显示多行数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文