本文介绍了文本框textchanged事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个asp项目 在这个项目中,我有一个带有textchanged事件的TextBox和AutoPostBack = true 以及压延扩展器及其目标控件,位于先前的文本框 我有时需要在后面的代码中更改压延机的选定日期 但这会使回发以在页面加载后执行文本框的textchanged事件 我问在更改
i have an asp project in this project i have a TextBox with a textchanged event and AutoPostBack = true and a calender extender and the target control of it the previous textbox i sometimes need to change the selected date of the calender extender in code behind but this make a postback to execute the textchanged event of the textbox after the page loads i''m asking if there is a way to prevent the post back when changing the selected date of the calender extender in code behind
推荐答案后面的代码中,更改日历扩展器的选定日期时是否有办法防止回发. ..您的问题将得到解决. Just add Update Panel....your problem will be solved.
将小东西放在一边,简而言之,您需要将Grid放在Udpate面板中以启用部分渲染:.您去了: UpdatePanel控件概述 [ ^ ] UpdatePanel控件 [ ^ ] UpdatePanel类 [ ^ ] 您需要了解的所有示例代码都已经存在并进行了解释. 果壳:您需要将压延剂放在Udpate面板中以启用部分渲染. Keeping small things aside, in short, you need to put your Grid in an Udpate Panel to enable partial rendering:. Here you go: UpdatePanel Control Overview[^] UpdatePanel control[^] UpdatePanel Class[^] All you need to know with sample code is present and explained. Nutshell: You need to put your calender extender in an Udpate Panel to enable partial rendering.
更多推荐
文本框textchanged事件
发布评论