Loading user control when a link is clicked on another user contro

Discussion in 'ASP .Net' started by =?Utf-8?B?U3JpZGhhcg==?=, Nov 17, 2005.

  1. Hi,

    I have created a webpage. In that webpage I am loading a user control
    into a place holder. The user control has a link button in it. when I click
    on that I need to able to load another user control in place of this into a
    place holder. I am not knowing how to do that. Could you please let me know.
    Or if my design of using user controls in this case is wrong please let me
    know the solution so that I could change it.

    Thanks,
    Sridhar.
     
    =?Utf-8?B?U3JpZGhhcg==?=, Nov 17, 2005
    #1
    1. Advertising

  2. Following code show how to load a usercontrol:

    UserControl ctrl = (UserControl)Page.LoadControl(userControlURL);
    placeholder.Controls.Add(ctrl);

    HTH

    Elton Wang

    "Sridhar" wrote:

    > Hi,
    >
    > I have created a webpage. In that webpage I am loading a user control
    > into a place holder. The user control has a link button in it. when I click
    > on that I need to able to load another user control in place of this into a
    > place holder. I am not knowing how to do that. Could you please let me know.
    > Or if my design of using user controls in this case is wrong please let me
    > know the solution so that I could change it.
    >
    > Thanks,
    > Sridhar.
    >
     
    =?Utf-8?B?RWx0b24gVw==?=, Nov 18, 2005
    #2
    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. SSW
    Replies:
    2
    Views:
    548
  2. =?Utf-8?B?TWFyY0RlVm9zLkJF?=

    Incorrect clientID for Calendar control as part of web user contro

    =?Utf-8?B?TWFyY0RlVm9zLkJF?=, Jul 20, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    356
    =?Utf-8?B?TWFyY0RlVm9zLkJF?=
    Jul 20, 2004
  3. Guest
    Replies:
    4
    Views:
    6,576
    Walter Wang [MSFT]
    Jul 16, 2006
  4. Philip
    Replies:
    0
    Views:
    154
    Philip
    Jan 29, 2007
  5. Jammer
    Replies:
    1
    Views:
    128
    Bob Barrows
    Sep 21, 2003
Loading...

Share This Page