想要在asp:label中显示大文本 [英] want to display large text in asp:label

查看:82
本文介绍了想要在asp:label中显示大文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想在asp:label中显示大文本值,大约2000个字符,但不起作用

mercnantdetaillabel.Text = ds1.Tables [0] .Rows [0] ["ProdMDetails"].ToString();

在数据中获取所有值,但在某些字符的标签上.正在显示...

want to display large text value in asp:label approx 2000 char but it is not working

mercnantdetaillabel.Text = ds1.Tables[0].Rows[0]["ProdMDetails"].ToString();

in the data get the all values but on label on some char. are displaying...

推荐答案

检查标签的宽度是否为硬编码.尝试增加长度,以检查其中是否显示更多字符.
Check the width of the label is not hardcoded. Try increasing the length to check if more characters show in it.


此问题可能是由于标签的绝对大小或位置引起的.不要指定标签的大小,也不要将其包装在绝对大小的容器中,例如
或面板,这样就可以正常工作.
This problem could be because of absolute sizing or positioning of the label. don''t specify the size of label and don''t wrap it in absolutely sized container like
or panel and it will work fine.


这篇关于想要在asp:label中显示大文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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