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.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL