Access page from class

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

I have a class in a DLL library with a method named Initialize.

I want to add a few things to Page Header when this method runs.

How can I access the page header from my class?

Thanks,

Miguel
 
Why not to do vice versa?
Just request necessary info from your class before page is loaded and add it
to header?
 
shapper said:
Hello,

I have a class in a DLL library with a method named Initialize.

I want to add a few things to Page Header when this method runs.

How can I access the page header from my class?

Thanks,

Miguel
hello,
you can use : HttpContext.Current.Page.Header

steph
 
Back
Top