When a ASPX page is opened using window.showModalDialog, Then that page showing Page.Header object as nothing
<p>I have ErrorMsg.aspx page which pops up using window.showModalDialog(..) I want to add javascript and CSS in the header of this page using code behind.
For adding javascript and CSS in header I need Header object of ErrorMsg.aspx page. But when I am checking PAGE object of this page the Header object is showing me NOTHING.
I am able to get Header object for other pages.</p>

<p>Is it a problem with window.showModalDialog(...)? </p>
