problem with user control

  • Thread starter Thread starter Bobofrut
  • Start date Start date
B

Bobofrut

hi All

is there any possibility to run main page Page_Load event from user control
??
or get access from this control to any public page properties

thnks in advance..

Chris
 
Hi,

you certainly can access Page's properties from user control. Just cast Page
property (user control has Page property) to its codebehind type. Then you
can access the properties of it. Note that this of course can make user
control dependant on Page where it resides or at least to know the page's
type.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

hi All

is there any possibility to run main page Page_Load event from user control
??
or get access from this control to any public page properties

thnks in advance..

Chris
 
Back
Top