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. Advertisements

  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. Advertisements

  3. Guest

    thanx Augustin.
    problem solved.

    Regards,
    Saurabh
     
    , Aug 8, 2006
    #3
    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. sonic_soul
    Replies:
    0
    Views:
    585
    sonic_soul
    Aug 14, 2003
  2. Nick Stansbury

    loading user controls dynamically

    Nick Stansbury, Jul 19, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    433
    John Saunders
    Jul 19, 2004
  3. Johnny Fugazzi

    Dynamically loading user controls

    Johnny Fugazzi, Nov 24, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    564
    Johnny Fugazzi
    Nov 24, 2004
  4. Jay Douglas
    Replies:
    5
    Views:
    6,001
    Scott Allen
    Dec 1, 2005
  5. =?Utf-8?B?V291dGVy?=

    Dynamically Loaded controls loading other controls

    =?Utf-8?B?V291dGVy?=, Feb 27, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    691
    =?Utf-8?B?V291dGVy?=
    Feb 27, 2006
  6. Bob Rock
    Replies:
    1
    Views:
    897
    Cowboy \(Gregory A. Beamer\)
    Sep 17, 2006
  7. Rick Mavrovik

    Dynamically Loading User Controls

    Rick Mavrovik, Aug 29, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    466
    Rick Mavrovik
    Aug 29, 2007
  8. Christian Resma Helle

    Dynamically loading User Controls

    Christian Resma Helle, Aug 6, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    565
    Christian Resma Helle
    Aug 7, 2008
Loading...