Results 1 to 6 of 6

Thread: is it possible to have one control in another???

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    Pakistan
    Posts
    32

    Lightbulb is it possible to have one control in another???

    I want to have one control in another. Like when i open a dropdown list i want to see a tree there. That is tree control is being added in a drop down list. Is it possible in web applications using asp net.

    If someone has worked in Sql Analysis Server and browsed the cube am sure they will know what kind of functionality i am willing to have in my web page.

    any help in this regard will be highly appreciated.

    Regards,

    Harris Moin
    You'll get life just for once so don't waste it .......

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    You would have to create your own control for that probably using DHTML, if it is even possible to do that. There are no other options.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    Pakistan
    Posts
    32
    Hmmmm

    But what is the controls property for, in all the controls of a webpage like

    DropDownList1.Controls.Add();

    anyone know what that supposed to do.

    Regards,

    Harris Moin
    You'll get life just for once so don't waste it .......

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    But the problm is that those generate HTML controls. Web browsers wouldnt know what to do with a treeview inside a dropdown as there is no such thing in HTML.

    Controls.Add is there because it inherits from a base class that contains that. Doesnt mean it can actually do anything.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    Pakistan
    Posts
    32
    Hmmmm just got a bit confused ... html controls you mean i can add a html textbox in a drop down list if i want ... ???
    You'll get life just for once so don't waste it .......

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    no..you still cant do that.HTML form controls CANNOT be put inside each other.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width