Nested User Controls

Discussion in 'ASP .Net' started by Guest, Aug 22, 2007.

  1. Guest

    Guest Guest


    I have two controls

    myParentControl would have a repeater which will have a 'myChildControl' in
    the ItemTemplate.

    I put the 'myParentControl' on a web page 'MyASPXPage'.

    MyASPXPage would have a dropdown list. Based on this event, I want to
    populate the 'myParentControl' and hence 'myChildControl'

    What should I do to setup the values in myChildControl and then render the
    control. Whats happening right now is the Page_Load of 'myChildControl' is
    executed even befor the values are setup.

    Any clue or links to this problem would be greatly appreciated.
    Guest, Aug 22, 2007
    1. Advertisements

  2. Guest


    Apr 6, 2011
    Likes Received:
    User Control Within User Control

    I am having a problem while laoding a child control in parent user control.
    I have more then one parent user controls on my page.
    When i click on an add button of one of this user control, child control is added to all user controls.
    I am getting the same value for request.params.ToString().Indexof("btnadd") for all parent user controls.
    How can i solve this problem?
    thanks in advance.
    Please help it's urgent.
    If anyone wants a code to refer please email me at : ""
    brij.nkh, Apr 6, 2011
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.