Dynamically Adding User Control

Discussion in 'ASP .Net' started by ravi sankar, Aug 29, 2003.

  1. ravi sankar

    ravi sankar Guest

    Hi,
    U need to use a placeholder control and add the control to
    the placeholder.
    http://aspnet.4guysfromrolla.com/articles/081402-1.aspx

    regards,
    s.ravi sankar


    >-----Original Message-----
    >How to add the user control dynamically to the tablecell
    >at runtime.
    >Thanks.
    >
    >.
    >
     
    ravi sankar, Aug 29, 2003
    #1
    1. Advertisements

  2. ravi sankar

    Ram sundar Guest


    >-----Original Message-----
    >Hi,
    >U need to use a placeholder control and add the control

    to
    >the placeholder.
    >http://aspnet.4guysfromrolla.com/articles/081402-1.aspx
    >
    >regards,
    >s.ravi sankar
    >
    >
    >>-----Original Message-----
    >>How to add the user control dynamically to the tablecell
    >>at runtime.
    >>Thanks.
    >>
    >>.
    >>

    >.
    >

    Hi,
    You could use a panel in the position where you wanna
    add a control and then do the following:
    panMyPanel.Controls.Add(New LiteralControl(butButton))
    Bye,
    CodeMachine
     
    Ram sundar, Aug 29, 2003
    #2
    1. Advertisements

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. Stu
    Replies:
    1
    Views:
    702
    Karl Seguin
    Jan 6, 2005
  2. =?Utf-8?B?UmV6YSBOYWJp?=

    Load User Control Dynamically, Cast object dynamically

    =?Utf-8?B?UmV6YSBOYWJp?=, Mar 4, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    7,144
    Matt Berther
    Mar 5, 2005
  3. =?Utf-8?B?UmV6YSBOYWJp?=

    Load User Control Dynamically, Cast object dynamically

    =?Utf-8?B?UmV6YSBOYWJp?=, Mar 4, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    6,564
    Scott Allen
    Mar 4, 2005
  4. Mad Scientist Jr
    Replies:
    0
    Views:
    905
    Mad Scientist Jr
    Mar 22, 2006
  5. Frank
    Replies:
    2
    Views:
    567
    Victor Garcia Aprea [MVP]
    Nov 26, 2003
  6. Sam

    Dynamically adding a user control to aspx page

    Sam, May 13, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    206
  7. Travis Pruitt

    Dynamically Adding User Control with Child User Control

    Travis Pruitt, Jan 13, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    307
    Travis Pruitt
    Jan 13, 2005
  8. Replies:
    1
    Views:
    414
    Alessandro Zifiglio
    Apr 18, 2006
Loading...