P
pearcewg
All:
I have a page with a form and fields on the form (checkboxes, grids,
etc).
This form contains a usercontrol which has a dynamic navigational menu
of buttons.
When a user clicks on one of the buttons in the usercontrol, it is
intended to save the updates information on the parent form. This is
done using a delegate/callback function to save the data. The
callback works great, and the save method is called on the parent
page.
However, I have a problem. When the usercontrol button is clicked,
the latest data in the parent form is not there (it is the data loaded
from the database, not the changed data). All of the controls are
like this (checkboxes, textboxes, etc).
I've tried changing the order of when the callback occurs to see if
the page lifecycle has anything to do with it, but no luck. I have a
save button on the parent form, which does almost the same behavior
and works perfectly.
Is the issue that the usercontrol cannot see postback data, or that I
have to do something explicit to post it to be seen by the user
control?
Sample of the code, with usercontrol displayed (uc1agesidemenu):<body background=".\images\Left_Gradient.gif"
MS_POSITIONING="GridLayout">
<form id="frmBusinessNameAddr" method="post" runat="server">
<uc1ageheader id="PageHeader1" runat="server"></uc1ageheader>
<table cellSpacing="0" cellPadding="0" width="100%">
<tr>
<td vAlign="top" width="100">
<uc1agesidemenu id="PageSideMenu1" runat="server"></
uc1agesidemenu>
</td>
<<<
Thanks in advance for any insight,
pearcewg
I have a page with a form and fields on the form (checkboxes, grids,
etc).
This form contains a usercontrol which has a dynamic navigational menu
of buttons.
When a user clicks on one of the buttons in the usercontrol, it is
intended to save the updates information on the parent form. This is
done using a delegate/callback function to save the data. The
callback works great, and the save method is called on the parent
page.
However, I have a problem. When the usercontrol button is clicked,
the latest data in the parent form is not there (it is the data loaded
from the database, not the changed data). All of the controls are
like this (checkboxes, textboxes, etc).
I've tried changing the order of when the callback occurs to see if
the page lifecycle has anything to do with it, but no luck. I have a
save button on the parent form, which does almost the same behavior
and works perfectly.
Is the issue that the usercontrol cannot see postback data, or that I
have to do something explicit to post it to be seen by the user
control?
Sample of the code, with usercontrol displayed (uc1agesidemenu):<body background=".\images\Left_Gradient.gif"
MS_POSITIONING="GridLayout">
<form id="frmBusinessNameAddr" method="post" runat="server">
<uc1ageheader id="PageHeader1" runat="server"></uc1ageheader>
<table cellSpacing="0" cellPadding="0" width="100%">
<tr>
<td vAlign="top" width="100">
<uc1agesidemenu id="PageSideMenu1" runat="server"></
uc1agesidemenu>
</td>
<<<
Thanks in advance for any insight,
pearcewg