文本框textchanged事件 [英] textbox textchanged event

查看:123
本文介绍了文本框textchanged事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net项目
在这个项目中,我有一个带有textchanged事件的TextBox和AutoPostBack = true
以及压延扩展器及其目标控件,位于先前的文本框

我有时需要在后面的代码中更改压延机的选定日期
但这会使回发以在页面加载后执行文本框的textchanged事件

我问在更改

i have an asp.net 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类 [
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事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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