Accessing vb of usercontrol within usercontrol

Discussion in '.NET' started by protic, Oct 15, 2008.

  1. protic

    protic

    Joined:
    Oct 15, 2008
    Messages:
    1
    Hi

    Whilst I've found some possible responses on this same issue, the solutions either don't work or I don't understand them properly.

    I have a form where there are usercontrols nested within usercontrols. When an event is fired at the form level, such as a PageIndex_Changing, I subsequently fire the corresponding PageIndex_Changing event in the subordinate usercontrol. However, I have had to extend one of the usercontrols with a further subordinate usercontrol as I have a situation where there are many subordinate records to the one superordinate one. The problem appears to be however, that the lowest level usercontrol is not being recognised, so

    Code:
    PanelMemberUserControl.PanelMemberFormView_PageIndexChanging(sender, e)
    gets a blue squiggly line under "PanelMemberUserControl" and I get the error message "Name 'PanelMemberUserControl' is not declared." I have seen suggestions that the user control must be either declared, or I need to use FindControl to access it, but I've not managed to make either of these work.

    Your help would be appreciated.

    Thanks
    protic, Oct 15, 2008
    #1
    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. huobazi
    Replies:
    1
    Views:
    667
    David Waz...
    Jul 3, 2003
  2. Rajesh Tiwari

    Can we use a usercontrol inside a usercontrol

    Rajesh Tiwari, Aug 12, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    398
    Rajesh Tiwari
    Aug 12, 2003
  3. nail
    Replies:
    0
    Views:
    1,527
  4. Phl
    Replies:
    2
    Views:
    509
    =?Utf-8?B?VGFtcGEgLk5FVCBLb2Rlcg==?=
    Nov 18, 2004
  5. shaileenpatel@yahoo.com
    Replies:
    2
    Views:
    524
    shaileenpatel@yahoo.com
    May 3, 2005
Loading...

Share This Page