Last post Nov 11, 2013 11:01 AM by WPUBrett
Nov 08, 2013 05:34 AM|WPUBrett|LINK
I have a CalendarExtender control. I set up an OnTextChanged event handler for its TargetControlID TextBox.
However, I can't get the TextBox to fire its own OnTextChanged event. If I put AutoPostback="true" on the TextBox, and manually enter a date, I get stuck in an endless Page_Load loop and the event handler never gets hit. Removing AutoPostBack stops the
loop, but the event handler still isn't hit.
I stripped out all but the bare minimum of code to run the above, but the TextBox still sends me into the loop.
Any ideas on how to get BOTH controls to use the same OnTextChanged event handler code?
Nov 10, 2013 09:38 PM|Happy Chen - MSFT|LINK
I would suggest you try the follow workaround：
fire a textbox's OnTextChanged while enabled=false
Problem with TextBox and Calendar Extender when using AutoPostBack=true
If you need more assistance , please let me know.
Nov 10, 2013 10:45 PM|chetan.sarode|LINK
Refer this -
Nov 11, 2013 11:01 AM|WPUBrett|LINK
Actually, looks like it is working now. Kind of strange though.
All I did was strip my code to the bare minimum, saw the events worked correctly, then ran Undo (Ctrl-Z) to put everything back. The events still worked. Perhaps something was corrupted or a change made behind the scenes when I put the code back.
Anyway, thanks. If it comes up again, I'll look at these responses again.