文本框textchanged事件

编程入门 行业动态 更新时间:2024-10-25 04:19:12
本文介绍了文本框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事件

本文发布于:2023-11-10 00:40:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573890.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本框   事件   textchanged

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!