I'd like to re-open this issue...
I just spent the better part of a day trying to narrow-down what the issue was with this...once narrowing it down, I came to discover the weird difference with textboxes vs any other control (at least most others... haven't tried them all). After spending an hour trying to formulate what it is that I should search for ("textbox holds value"..."textbox not repopulated"... or similar unspecific searches that lead no where), I stumbled onto this forum post (thankfully...before I pulled my hair out).
Yes, the "Do it in PreRender" solution works. However, my problem is that most people use the demos as an example/blueprint for how to perform an operation/task. The demo does NOT
It uses Page Load
. So, guess what everybody is going to use?? Page Load
. There isn't a single person that would out of the blue use PreRender
for this...ESPECIALLY if the demo does not. Therefore, I would venture to say that every single person new to this particular scenario (trying it for the first time) using textboxes would have this problem. Why not just change the demo code to use PreRender?????? That would solve everybody's problem and not have them waste time on such a silly thing. I'm sure most will probably just give up or else enter a support ticket that needs to be answered a million times.
I would also LOVE to know WHY this isn't a problem with LABEL controls but IS problem with Textboxes, but at least update the Demo code...or at the VERY VERY least make a statement in the "description" for the demo that this will NOT work with Textboxes and what to do if you do want to use Textboxes (or any other control that might not work).
I'm just frustrated that I spent the whole day on something that could've been EASILY avoided.
If the "solution" is to use PreRender, then how about "fixing" the apparently broken demo that uses Page Load: