Passing Parameters to user control within another user control

Discussion in 'ASP .Net Web Controls' started by hmikki, Oct 5, 2007.

  1. hmikki

    hmikki Guest

    Hello -

    I am dynamically loading a user control (Ctrl2) within another user
    control (Ctrl1). Now, I need to pass parameters from Ctrl1 to Ctrl2.
    How do I do this?
    Thanks much.
     
    hmikki, Oct 5, 2007
    #1
    1. Advertisements

  2. I would declare the necessary Properties in Ctrl2, this will allow you to
    set the properties regardless of where you load the UserControl from.
    --
    Nathan Sokalski

    http://www.nathansokalski.com/

    "hmikki" <> wrote in message
    news:...
    > Hello -
    >
    > I am dynamically loading a user control (Ctrl2) within another user
    > control (Ctrl1). Now, I need to pass parameters from Ctrl1 to Ctrl2.
    > How do I do this?
    > Thanks much.
    >
     
    Nathan Sokalski, Oct 19, 2007
    #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. qwerty
    Replies:
    3
    Views:
    9,487
    Scott Allen
    Sep 30, 2004
  2. Don
    Replies:
    3
    Views:
    5,694
    Karl Seguin
    Mar 11, 2005
  3. Jamil
    Replies:
    1
    Views:
    2,480
    =?Utf-8?B?SFA=?=
    Nov 24, 2005
  4. TB
    Replies:
    2
    Views:
    4,374
  5. =?Utf-8?B?Q1NoYXJwZ3V5?=

    passing parameters to a user control

    =?Utf-8?B?Q1NoYXJwZ3V5?=, May 16, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    424
  6. Tarscher
    Replies:
    1
    Views:
    433
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    Feb 1, 2007
  7. Ramon F Herrera
    Replies:
    8
    Views:
    706
    Pascal J. Bourguignon
    Sep 13, 2009
  8. Matt Sokol
    Replies:
    2
    Views:
    618
    Theo Tillotson
    Aug 7, 2003
Loading...