Re: grouping controls together

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>
Alex Meleta [ Mo, 31 März 2008 14:40 ] [ ID #1931383 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Re: grouping controls together

Vorheriges Thema: what is the most secure way to pass querystring parameters
Nächstes Thema: Membership - Use existing Useraccounts with no PasswordSalt