如何在绑定到标签时修复文本的长度 [英] how to fix the length of the text while binding to the label

查看:73
本文介绍了如何在绑定到标签时修复文本的长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在移动浏览中打开时,应用程序中的问题..问题是我将数据库中的文本绑定到转发器中的标签。当它将文本绑定到标签时如果文本内容很重意味着我的意思(jhgkghjghkjgjgkgjkhkhj)就像这个连续的单词意味着它将屏幕向左移动。是否有任何解决方案来修复标签的长度,意味着只有25个字符,它应该下降是可能的...

解决方案

修复长度不是解。您应该开发应用程序以便同时使用(移动和桌面)。您可以通过基于浏览器的站点上的链接将客户端从主Web应用程序指向移动设备,或者您可以使用代码(请参阅下文)来确定它是否是移动设备。请参阅以下链接:

ASP.NET中的移动支持 [ ^ ]

ASP.NET移动网页 [ ^ ]

ASP.Net:移动应用程序 [ ^ ]





- Amit


如果你想从数据库中选择管理,你可以使用下面的功能



SUBSTRING('columnName' ,0,25)---修改列名


problem in application when i open in mobile browsing.. problem is i am binding the text from database to label which is in a repeater. when it is binding the text to label if the text content is heavy means i mean (jhgkghjghkjgjgkgjkhkhj) like this continuous word means it is moving the screen to left. is there any solution to fix the length of the label that mean only 25 characters after that it should come down is it possible...

解决方案

Fixing length is not a solution. You should develop the application in order to work with both(mobile as well as desktop). You can point your client from the main webapp to the mobile one via a link on the browser based site or you can use code (see below) to determine if it is a mobile device. Please see the links below:
Mobile Support in ASP.NET[^]
ASP.NET Mobile Web Pages [^]
ASP.Net : Mobile Applications[^]


--Amit


you can use bellow function if you want to manage from Database in select

SUBSTRING('columnName', 0 , 25) ---modify column name


这篇关于如何在绑定到标签时修复文本的长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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