problem with user control

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
 
T

Teemu Keiski

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

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,186
Latest member
vinaykumar_nevatia

Latest Threads

Top