Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Accessing vb of usercontrol within usercontrol

Thread Tools

Accessing vb of usercontrol within usercontrol

protic protic is offline
Junior Member
Join Date: Oct 2008
Posts: 1

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

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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TabStrip/Multipage using UserControl (.ascx) contained within a UserControl(.ascx) ASP .Net Web Controls 2 05-03-2005 05:01 PM
accessing usercontrol from another usercontrol Phl ASP .Net 2 11-18-2004 07:33 PM
Access a control inside an usercontrol from another control inside another usercontrol nail ASP .Net 0 09-15-2004 03:55 PM
Can we use a usercontrol inside a usercontrol Rajesh Tiwari ASP .Net 0 08-12-2003 03:56 PM
Use LoadControl to load a usercontrol but the webcontrol in the usercontrol can not AutoPostBack huobazi ASP .Net 1 07-03-2003 03:14 AM