![]() |
|
|
|||||||
![]() |
ASP Net - Get container of user control |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
My aspx page contains a placeholder control which I use to
display various user controls. Is it possible to get a reference to the page instance from within the user control? The property "Parent" refers to the placeholder control, not to the containing page... Thanks, PontiMax PontiMax |
|
|
|
|
#2 |
|
Posts: n/a
|
Try the Page property. Every Control has one.
-- HTH, Kevin Spencer ..Net Developer Microsoft MVP I get paid good money to solve puzzles for a living "PontiMax" <> wrote in message news:043d01c4b5d1$d5584260$... > My aspx page contains a placeholder control which I use to > display various user controls. > > Is it possible to get a reference to the page instance > from within the user control? The property "Parent" refers > to the placeholder control, not to the containing page... > > Thanks, > PontiMax > Kevin Spencer |
|
|
|
#3 |
|
Posts: n/a
|
PontiMax wrote:
> My aspx page contains a placeholder control which I use to > display various user controls. > > Is it possible to get a reference to the page instance > from within the user control? The property "Parent" refers > to the placeholder control, not to the containing page... > > Thanks, > PontiMax Control has a Page property ... Hans Kesting Hans Kesting |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| user control 1.1 | sql | Software | 0 | 04-02-2009 09:15 AM |
| Mind Control and CIA'S BOURNE IDENTITY PLOT | soleilmavis@gmail.com | DVD Video | 2 | 08-03-2007 09:54 PM |
| Ajax Atlas not working in User Control | faiq | Software | 0 | 09-16-2006 08:28 AM |
| ASP.NET: User Control Events is Not Displaying in a Property Window | BabuA | Software | 0 | 09-14-2006 05:44 PM |
| FS: JP1 cable to program your universial remote control, now youcan control anything you want! | Mike | DVD Video | 0 | 07-15-2005 02:46 AM |