在多行文本框中输入数据并存储在xml文件中,然后在网格视图中获取 [英] entering data in multiline textbox and storing in xml file and then fetching in grid view

查看:54
本文介绍了在多行文本框中输入数据并存储在xml文件中,然后在网格视图中获取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


实际上,我是在制作书籍,asp.net中的用户评论页面,用户可以在其中通过多行文本框将评论,评论等传递给作者.
在xml文件中:reviews
评论Reviews =漂亮的书(500个字符的文字)" By ="gaurav"批准=否"
评论

以上是xml文件中来自第3个txtbox的值.


现在我想在grig view.fetch中获取这些内容,因为评论大约有500个字符,因此可以多行显示.我面临的问题是当我从文本框中输入值时,它们存储在xml文件中,并且当我在gridview中获取时,大型评论出现在很长的一行中,这大大增加了gridviews的宽度,或者如果我在div中使用grid并设置了溢出:auto,grid视图正在生成一个水平滚动条.这使得其他列标题无法从网页上突出显示.要查看它们,用户必须滚动水平滚动条.有人可以帮忙,以便数据可以进入有限的单元格宽度,以便水平滚动条可能不会出现.
在此先感谢...

Hi,
actually i m making books ,users review page in asp.net where user can pass reviews ,comments etc.to the writer from a multiline text box .
in xml file: reviews
Reviews Reviews="nice book (500 character text)" By="gaurav" approve="no"
reviews

above are the values which are coming fron 3 txtboxes in xml file .


now i want to fetch these in grig view.where multilines can come as reviews are of aroung 500 characters. problem i m facing is when i m entering values from text box ,they are stored in xml file and when i m fetching in gridview large reviews are coming in long single line which is increasing gridviews width a lot ,or if i take grid in div and set overflow:auto,grid view is generating a horizontal scroll bar.which is making making other column headers out of focus from webpage.to see them user has to scroll the horizontal scroll bar.can someone help so that data can come in limited cell width so that horizontal scroll bar may not come.
Thanks in advance...

推荐答案

在gridview中使用模板列,并根据需要设置其格式.
Use a template column in the gridview and format it as desired.


这篇关于在多行文本框中输入数据并存储在xml文件中,然后在网格视图中获取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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