Home All Groups Group Topic Archive Search About

Dropdownlist doesnot allow child control.

Author
13 Jun 2005 7:33 AM
Hema S via DotNetMonster.com
Hi ,

I am trying to create a usercontrol

I have requirement like embedding a dropdownlist in a dropdownlist.

when i tried
                      <B> mydropdownlist.control.add(new dropdownlist) iam
getting this  error<B>

Can anyone tell me how to proceed wth this.
If possible do provideme code snippets.


cheers
Hema S


Author
14 Jun 2005 12:14 AM
Alvin Bruney [MVP - ASP.NET]
a dropdownlist cannot take other controls. you may find a custom control
that can do this on asp.net website

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
Show quoteHide quote
"Hema S via DotNetMonster.com" <forum@nospam.DotNetMonster.com> wrote in
message news:4FC645D49E100@DotNetMonster.com...
> Hi ,
>
> I am trying to create a usercontrol
>
> I have requirement like embedding a dropdownlist in a dropdownlist.
>
> when i tried
>                      <B> mydropdownlist.control.add(new dropdownlist) iam
> getting this  error<B>
>
> Can anyone tell me how to proceed wth this.
> If possible do provideme code snippets.
>
>
> cheers
> Hema S
>
> --
> Message posted via DotNetMonster.com
> http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net-web-controls/200506/1