Client side script causing formatting problems

Discussion in 'ASP .Net Web Controls' started by Joe90, Jul 12, 2006.

  1. Joe90

    Joe90 Guest

    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.
     
    Joe90, Jul 12, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Magnus Blomberg
    Replies:
    3
    Views:
    730
    Magnus Blomberg
    Apr 14, 2005
  2. Boss302
    Replies:
    0
    Views:
    1,070
    Boss302
    Nov 21, 2006
  3. Bogdan
    Replies:
    2
    Views:
    668
    Bogdan
    Jun 9, 2008
  4. Paul
    Replies:
    0
    Views:
    316
  5. Yobbo

    2 Divs side-by-side causing me grief

    Yobbo, Nov 11, 2006, in forum: ASP General
    Replies:
    3
    Views:
    188
    Evertjan.
    Nov 12, 2006
Loading...

Share This Page