Re: grouping controls together

Re: grouping controls together

am 31.03.2008 14:40:43 von Alex Meleta

Hi Robert,

You can use Table, Placeholder or such containers for this.

Regards,
Alex Meleta
[Tech Blog: http://devkids.blogspot.com]

RS> Hi,
RS> I have several dropdownList controls on my form and I wish to
RS> loop
RS> through them all and find the selected value and then concatenate
RS> them
RS> together into a string. The problem is I can't find a way to group
RS> the controls together so that I can loop through them, If I put them
RS> in a panel I get a compilation error.
RS>
RS> If wish to go
RS> foreach (Control MyControl in ??????)
RS> {
RS> if (typeof(mycontrol) is dropdownlist)
RS> {
RS> mystring = mystring + mycontrol.selectedvalue
RS> }
RS> }
RS> The problem is with the grouping together of the controls not the
RS> string concatenation. How can I group the controls so that I can
RS> loop through them? Thanx in advance
RS>
RS> Robert
RS>