Access page from class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shapper

    Access page from class

    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
  • =?Utf-8?B?TWljaGFlbCBOZW10c2V2?=

    #2
    RE: Access page from class

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

    --
    WBR, Michael Nemtsev [.NET/C# MVP].
    Blog: http://spaces.live.com/laflour



    "shapper" wrote:
    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
    >

    Comment

    • Steph

      #3
      Re: Access page from class

      shapper wrote:
      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.Cur rent.Page.Heade r

      steph

      Comment

      Working...