
May 24th, 2001, 04:47 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
pass a form to a web user control(pagelet)
<i><b>Originally posted by : Annie Wang (hwnag@made2manage.com)</b></i><br /><br /> 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(pagelet) 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 with the user control, so I have to pass it as a property of the user control. But how to pass a form? After that, I have to go through all the controls (no idea what they are) in these forms. I have done this in ASP. But I am not sure if I can use the same way in ASP+. In other words, could I use some thing like: <br /> foreach(webcontrol ctrl in myform)<br /> {<br /> //copy data to a DataSet<br /> }<br /> <br /> Thanks for any help.<br />
|