Parent page and Custom control

H

Hugo Flores

Hi,

I created a custom cuntrol and I want to be able to access the page
object where my control was added (the page that contains my control).
If I use the page object in my custom control or Parent.Page I always
get "Object reference not set to an instance of an object".
Does anybody know how can I do this?
 
H

Hugo Flores

My mistake, I was trying to access the Page object on the New event of
my control. All I did was access it on the OnLoad event of the control
 

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,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top