pass a form to a web user control (pagelet)
We have quite a few forms which have a common toolbar. On the toolbar are
image buttons to do "Save", "Delete", etc. As we switch to asp.net, I want
to build this toolbar as a user control so every form can just use this control.
But problem comes when I try to process data in these forms.
First, the forms are not accessible within the user control, so I have to
pass it as a property of the user control. But how to do it?
Second, I have to go through all the web controls in these forms. I have
done it in ASP, but I am not sure how to do it in ASP+. Could I use some
foreach(webcontrol ctrl in myform)
//copy data to DataSet;
Thanks for your help.