I have a problem: I have a user control in which there is a nested second user control. In that second control I have a textBox. During postback the value of the textbox is always the same (default one), even if I开发者_如何学编程 change text in that textBox.
Is this a common problem?
I just noticed that it might me caused bye repeater cause textBox is inside repater. Do you know how to foce textBox to keep value beetween postbacks if its in repeater ?
No, this is not a common issue. You should check where the control is being added and were the default value is being set. Either one could be causing you troubles.
This is not the problem, it is in your code. I guess your value is repopulating the old one in the Page_load
event of the usercontrol.
精彩评论