如何在运行时更改文本框高度 [英] How to change textbox height at run time

查看:103
本文介绍了如何在运行时更改文本框高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在中继器控件中有一个多行文本框.
我必须输入评论(最多1000个字符)部分,添加评论后,它们将显示在此文本框中.
我的要求是,如何将此文本框设置为根据要显示的文本自动调整其高度.
现在,我正在使用固定高度的Textbox.

谢谢

Hi ,

I have a Multiline Textbox in a repeater control.
I have to enter comments(max 1000 chars) section and after adding comments they will shown to this Textbox.
My requirement is that how this Textbox can be set to automatically adjusted their height according to text into it that is going to be display.
Right now I am taking a fixed height of Textbox.

Thanks

推荐答案

您为什么不喜欢文本框中的滚动条(水平/垂直/两者)?文本框的高度增加(用户输入数据时)会使UI变差.

对于滚动条,请访问此链接 [ ^ ]
Why don''t you prefer Scroll-bars(Horizontal/Vertical/Both) in textbox? Increasing height of textbox(while user typing data) will make the UI worse.

For Scrollbars visit this link[^]


如何在运行时自动在asp.net中调整文本框的高度
how we can adjust height if a textbox automatically on runtime in asp.net


这篇关于如何在运行时更改文本框高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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