K
Kevin Attard
I have this form being generated dynamically.
The whole form generator is a usercontrol in itself.
Some fields are displayed using regular controls eg: Textbox and others use
webusercontrols
This is the basic cycle:
1. Create controls
2. load data in controls from db (if exist)
When the save button is pressed a post back occurs and :
1. controls are created
2. data is set in controls from db
3. data is retrieved from the controls and saving occurs
Here is the problem
I have 2 textboxes, one normal and the other in a usercontrol and both have
'1' set as text. If I change the text to '2' and press save, the normal
textbox saves 2 while the textbox in the usercontrol saves 1 in the db.
What am I doing wrong? is it the cycle or because of the usercontrol?
The whole form generator is a usercontrol in itself.
Some fields are displayed using regular controls eg: Textbox and others use
webusercontrols
This is the basic cycle:
1. Create controls
2. load data in controls from db (if exist)
When the save button is pressed a post back occurs and :
1. controls are created
2. data is set in controls from db
3. data is retrieved from the controls and saving occurs
Here is the problem
I have 2 textboxes, one normal and the other in a usercontrol and both have
'1' set as text. If I change the text to '2' and press save, the normal
textbox saves 2 while the textbox in the usercontrol saves 1 in the db.
What am I doing wrong? is it the cycle or because of the usercontrol?