0
 URL = "window.open('../GBY/Reports/ReportViewer.aspx?ReportParams=" + ReportParams + "&ReportName=" + ReportName + "  ' , '_blank');";

            ScriptManager.RegisterClientScriptBlock(this.Page, typeof(UpdatePanel), "OPEN_WINDOW", URL, true);

We use above code to open report viewer in another window. But that window open not maximized size. I want to open as maximize size. How to do that with above code?

1

1 Answer 1

0
 window.open('index.html','_blank','fullscreen=yes');

Try this

function openWin()
{
myWindow = window.open("","","width=100,height=100"); // Opens a new window
}

function resizeWin()
{
 myWindow.resizeTo(250,250);                           // Resizes the new window
 myWindow.focus();                                     // Assures that the new window gets      focus
}
2
  • Thanks, But it('fullscreen=yes') open as whole screen. I want the window in maximized size. Apr 4, 2014 at 8:52
  • try the editted part...change 250 to ur required size...
    – ghost...
    Apr 4, 2014 at 9:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.