adding controls to div programmatically

Discussion in 'ASP .Net Web Controls' started by de@networld.com, Jan 8, 2005.

  1. Guest

    I'm trying to create a composite control w/o knowing much about it. I
    should probably get a book and start at chapter 1 but in the hopes of
    saving time, I'm posting. Do the control books ever use javascript,
    anyway?

    I'm inheriting from webcontrol and have added a textbox, a listbox, a
    requiredFieldValidator, and a HtmlGenericControl (div). I want to show
    and hide the listbox via javascript. I've add appropriate attributes to
    my controls so that the javascripts should be called. I want to put
    the listbox (lb) in the div (div)programmatically but don't know how. I
    tried div.Controls.Add(lb). Any help?
    , Jan 8, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?RCBTaGVsZG9u?=

    Adding validation controls programmatically

    =?Utf-8?B?RCBTaGVsZG9u?=, May 11, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    5,766
    =?Utf-8?B?RCBTaGVsZG9u?=
    May 11, 2004
  2. Jimmy
    Replies:
    7
    Views:
    4,918
    Chaddy2222
    Nov 21, 2008
  3. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    741
  4. Dwayne Madsen

    Q: Div A inside Div B is larger than Div B

    Dwayne Madsen, Jun 1, 2005, in forum: Javascript
    Replies:
    1
    Views:
    182
    David Dorward
    Jun 1, 2005
  5. mscir
    Replies:
    3
    Views:
    303
    Martin Honnen
    Jun 26, 2005
Loading...

Share This Page