Click here to Skip to main content
14,869,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have an 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
Ranjith Reddy CSE 27-May-12 5:20am
yes, there is a way....just add updatel panel

Just add Update Panel....your problem will be solved.
bakinam Ahmed 27-May-12 6:15am
They are already on updatepanel
the postback i mean asynchronous one, but i don't want the textbox to fire the text changed event when changing the calender extender selected date in code behind
is that possible?
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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900