Access page from class

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
 
M

Michael Nemtsev

Why not to do vice versa?
Just request necessary info from your class before page is loaded and add it
to header?
 
S

Steph

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
 

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

Forum statistics

Threads
473,795
Messages
2,569,644
Members
45,359
Latest member
1854578

Latest Threads

Top