如何显示评论 [英] how to display comment
问题描述
我正在开发c#Web应用程序.net框架4.5.
我使用了一个数据库来存储用户的反馈.为了显示注释,我使用了所有这些(数据列表,列表视图,gridview,formview,详细信息视图),但是问题是,当注释为长字符串时,整个字符串以单行打印,这确实破坏了页面的美感. br/>
姓名:aaa
电子邮件:@yahoo
反馈:zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
添加日期:10/3/2012 12:00:00 AM
这整行打印在单行中.
我想要一个长字符串,假设超过100个字符.我想在一行中显示100个字符,在下一行中显示其余的字符串.
有任何一种控制权的可能性,特别是我对列表视图感兴趣.
列表视图有可能在多行中打印长字符串吗????
另一个问题是列表视图是否有可能删除任何评论????
感谢
I am developing c# web application .net frame work 4.5.
I used a database for storing feedback from users. for displaying comments i used all of these (datalist, list view, gridview,formview, detail view) but problem is that when the comment is a long string, whole string is printed in single line, which realy destroyes beauty of a page.
Name: aaa
Email: @yahoo
Feedback: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
DateAdded: 10/3/2012 12:00:00 AM
this whole line is printed in single line.
i want if there is a long string, suppose more than 100 charecters. i want to display 100 char in one line and rest of string in next line.
is there any possibilty with either of control, specially i am interested in list view.
is there any possibilty with list view to print a long string in more than one line????
another question is that is there any posibilty with list view to delete any comment?????
thanks
推荐答案
看我的文章: ^ ]
或通过搜索自动换行"找到的其他任何
Look at my article: Word wrap without cutting words[^]
Or any others found by searching on "word wrap"
这篇关于如何显示评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!