我们可以在TestBox中使用Button吗 [英] Can we use Button inside a TestBox

查看:68
本文介绍了我们可以在TestBox中使用Button吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我有一些要求,例如asp.net中文本框内的Button.请帮助我.
在此先感谢.

解决方案

否.
文本框用于显示文本-他们一无所知.它们不可用作控制容器,因此不能很好地工作.
您无需为此编写自己的自定义控件就可以做到的最佳"操作是在文本框顶部放置一个按钮-看起来很傻,因为文本将在该按钮下运行.


Hi Friends,
I am some requirement like Button inside textbox in asp.net.Please help me.
Thanks in advance.

解决方案

No.
Text boxes are for text - they know about nothing else. They are not intended as control containers, and will not work well as such.
The "best" you could do without writing your own custom control for this would be a button on top of the text box - which would look silly, because the text would run under the button.


这篇关于我们可以在TestBox中使用Button吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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