我想把asp.net里面的两个控件组合起来!
在erp系统开发的时候,经常用到一个这样子的控件: 在一个textbox中填入了内容之后,就会浮动出一个gridview(带分页的) 我想做一个这种textbox+gridview自定义控件, 但是技术不好,不知道怎么写……
你可以重写TextBox控件,然后重写TextBox的OnTextChanged方法,在方法中实现生成GridView控件,具体你可以参考日历控件的实现:
http://www.cnblogs.com/esshs/archive/2005/03/29/127691.html
不过最好的实现使用Jquery来实现,另外给你几个参考文章:
http://www.cnblogs.com/luckyadam/archive/2011/06/29/2093477.html
http://www.cnblogs.com/liluping860122/archive/2013/05/25/3099077.html
If my post is helpful,please help to vote as helpful, if my post solve your question, please help to make it as answer. My sample