Asp net calendar not updating
You see that I registered an Async Post Back Trigger on the Click event of the button.
I also added a label that will be updated by the event raised by the textbox.
Remember to set the Update Mode to Conditional, otherwise the Update Panel will always be refreshed, not only when there is a postback inside or when a trigger fires.
Using the Client ID property of the control will ensure that you get the right ID even if the control is inside a masterpage, a webcontrol, a repeater or whatever might change the ID.
Now that I've 2 controls, using thr Hidden Field makes more sense.
Or, if you don't need the value, you can directly call the __do Post Back with the id of updatepanel Hi Everyone, It tooked me 2 days to figure it out why it's not working... That (in my case - I don't know why) the __do Post Back method doesn't work with the ID of the control - it needs the name of the control.. I tried all of the approches found in here, but it didnt worked...
So I adapted a bit Ben's solution, and I add hidden text box, and update its value before calling the do Post Back method.
To implement that you need to add 4 "things" in your ASP. You need a textbox to store the value you want to pass over to the Update Panel, but you don't want to show it in the page, so it must be hidden via CSS.