无法在datalist中设置labe的宽度 [英] unable to set width of a labe inside datalist

查看:189
本文介绍了无法在datalist中设置labe的宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在datalist中的datacolumndescriptionstatic中显示值。我在dtatalist中将repeatcolumn设置为3。数据列的长度为200 varchar。数据被检索并显示在数据列表中但我的问题是显示的数据作为单行运行并与数据列表的下一列重叠。如何以多行显示,以便它不会与数据列表的下一列重叠。



visible =true>





关于商品:

< asp:Label ID = Label11runat =serverWidth =55Height =80

Text ='<%#DataBinder.Eval(Container.DataItem,DescriptionStatic)%>'>





I want to show the value in datacolumn 'descriptionstatic' in datalist. I have set repeatcolumn to 3 in the dtatalist. The length of datacolumn is 200 varchar. The data is retrieved and shown in the datalist but my problem is that the data shown runs as a single line and overlaps the next column of the datalist. How to show it in multiple lines, so that it will not overlap the next column of the datalist.

visible ="true">


About the product:
<asp:Label ID="Label11" runat = "server" Width="55" Height="80"
Text=' <%# DataBinder.Eval(Container.DataItem, "DescriptionStatic")%>'>


推荐答案

if you want show description data in a lable then put " <br /> " inside your text counting after some length. Then you will find the line break in design page. Hope so


这篇关于无法在datalist中设置labe的宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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