How can I return multiple web controls from a class?http://forums.asp.net/t/429734.aspx/1?How+can+I+return+multiple+web+controls+from+a+class+Tue, 30 Dec 2003 13:02:34 -0500429734429734http://forums.asp.net/p/429734/429734.aspx/1?How+can+I+return+multiple+web+controls+from+a+class+How can I return multiple web controls from a class? Hi, Up to this point, I was able to pass a web control to a class as a parameter and return it back to the ASPX page i.e. pass a DropDownList control to a class and let the class populate it with US states and pass it back to the ASP.NET page. Now I want to pass several web controls to a class and return them to my ASP.NET page but I don't know how to return multiple web controls from a class -- especially if they are of different types i.e. Labels, DropDownLists, etc. I'm trying to pass 4 label controls and a hyperlink control to a class and I want the class to populate and return them to the ASPX page. These label controls will have the company name, address, phone and fax numbers and the hyperlink control will have the company's web url. How can I pass multiple controls to a class and return them back to my ASPX page? Someone mentioned web control collections but I was not able to find any info on that. I'd appreciate some pointers here. 2003-12-30T03:17:57-05:00430023http://forums.asp.net/p/429734/430023.aspx/1?Re+How+can+I+return+multiple+web+controls+from+a+class+Re: How can I return multiple web controls from a class? You need to use ControlCollection which is the same collection that is found in [WebControl].Controls. 2003-12-30T12:58:41-05:00430026http://forums.asp.net/p/429734/430026.aspx/1?Re+How+can+I+return+multiple+web+controls+from+a+class+Re: How can I return multiple web controls from a class? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIControlCollectionClassTopic.asp 2003-12-30T12:59:26-05:00