Client side script causing formatting problems

J

Joe90

We have a treeview whose leaves represent reports. When a user selects a leaf
we validate and store serveral "Session" parameters and execute a client side
script to open a new browser to render the report thus;

Response.Write("<script>window.open(\"../WebReports/RepViewer.aspx\",\"_blank\",\"menubar=no,status=yes,resizable=yes\")</script>");

The original page has a fixed width and is setup to centre itself in the
browser using the CSS "margin: 0 auto;". When the script executes the
original page looses its margin setting and becomes left aligned, all other
formatting is untouched.

Does anyone have any ideas what's causing this and what the solution is ?

Thanks in advance.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top