If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

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
thing like:
foreach(webcontrol ctrl in myform)
{
//copy data to DataSet;
}