I have a requirement to launch a secondary page as a pop-under when a certain page opens. That page uses a master page and asp:Content object - so there is no body tag to tweak in the aspx markup.
The way I understand I need to do a pop-under is to launch a new window object via javascript and call the blur method on that window object. I'm not sure how to fire up that javascript without a that is generic to the master page. I tried setting the attribute to that but that is not working. The ID of the body tag is dynamic with the value set by a property called BodyID
HtmlGenericControl _body = (HtmlGenericControl)Master.FindControl(Master.BodyId);
comes up with null for the _body object. I'm thinking the assignment hasn't occurred yet in the Page_Load method??
Anyway - perhaps there is a better way to accomplish what I'm trying to do. Any help would be greatly appreciated.
The way I understand I need to do a pop-under is to launch a new window object via javascript and call the blur method on that window object. I'm not sure how to fire up that javascript without a that is generic to the master page. I tried setting the attribute to that but that is not working. The ID of the body tag is dynamic with the value set by a property called BodyID
HtmlGenericControl _body = (HtmlGenericControl)Master.FindControl(Master.BodyId);
comes up with null for the _body object. I'm thinking the assignment hasn't occurred yet in the Page_Load method??
Anyway - perhaps there is a better way to accomplish what I'm trying to do. Any help would be greatly appreciated.