Parent page and Custom control

  • Thread starter Thread starter Hugo Flores
  • Start date Start date
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?
 
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

Back
Top