dynamically loading user controls in webforms

Discussion in 'ASP .Net' started by nemesis.saurabh@gmail.com, Aug 7, 2006.

  1. Guest

    hi,
    Can we dynamically load a user control in the web form.
    problem i am facing is i have 2 user controls: uc1 and uc2.

    when my page is loading the functions and variables in the uc1 is
    conflicting with uc2.

    if possible can we have this scenario:
    i have both the user controls in my web form. if i want to load uc1, i
    can disable uc2...possible both ways.

    Regards,
    Saurabh
    , Aug 7, 2006
    #1
    1. Advertising

  2. Yes. User Controls can be dynamically loaded into a web form.

    check out http://www.codeproject.com/aspnet/LoadingUSerControl.asp for a
    sample code.

    - Augustin

    "" wrote:

    > hi,
    > Can we dynamically load a user control in the web form.
    > problem i am facing is i have 2 user controls: uc1 and uc2.
    >
    > when my page is loading the functions and variables in the uc1 is
    > conflicting with uc2.
    >
    > if possible can we have this scenario:
    > i have both the user controls in my web form. if i want to load uc1, i
    > can disable uc2...possible both ways.
    >
    > Regards,
    > Saurabh
    >
    >
    =?Utf-8?B?QXVndXN0aW4gUHJhc2FubmE=?=, Aug 7, 2006
    #2
    1. Advertising

  3. Guest

    thanx Augustin.
    problem solved.

    Regards,
    Saurabh
    , Aug 8, 2006
    #3
    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. Ben Miller [msft]
    Replies:
    0
    Views:
    583
    Ben Miller [msft]
    Aug 5, 2003
  2. sonic_soul
    Replies:
    0
    Views:
    514
    sonic_soul
    Aug 14, 2003
  3. Nick Stansbury

    loading user controls dynamically

    Nick Stansbury, Jul 19, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    328
    John Saunders
    Jul 19, 2004
  4. =?Utf-8?B?V291dGVy?=

    Dynamically Loaded controls loading other controls

    =?Utf-8?B?V291dGVy?=, Feb 27, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    486
    =?Utf-8?B?V291dGVy?=
    Feb 27, 2006
  5. Bob Rock
    Replies:
    1
    Views:
    614
    Cowboy \(Gregory A. Beamer\)
    Sep 17, 2006
Loading...

Share This Page