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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top