Problem in getting WebUserControl value

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top