G
Guest
Hi,
I have an aspx page page with some existing controls code etc. This page has
an update button which updates a SQL Db based on any user changes. I need to
add a new section to this page and a few other pages. I think that it's best
to create a user control for this purpose. This user control will contain a
number of webcontrols e.g textbox, dropdown etc When the user clicks update
on the main page I need to update the DB as before for the original controls
plus the new ones from the user control.
What is the best way to do this? I thought that the user control should have
its own methods to take care of the updates but how should the main page call
these methods or is there a better way to do this?
I have an aspx page page with some existing controls code etc. This page has
an update button which updates a SQL Db based on any user changes. I need to
add a new section to this page and a few other pages. I think that it's best
to create a user control for this purpose. This user control will contain a
number of webcontrols e.g textbox, dropdown etc When the user clicks update
on the main page I need to update the DB as before for the original controls
plus the new ones from the user control.
What is the best way to do this? I thought that the user control should have
its own methods to take care of the updates but how should the main page call
these methods or is there a better way to do this?