Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dears,

i have a method that should open a window
however, i need the window to have maximum screen size to cover the previous window or open in a new tab.
i'm using IE8

and here's my code that's opening a small pop up
C#
private void OpenNewWindow(string url)
        {
 ScriptManager.RegisterStartupScript(this, typeof(string), "OpenWindowScript", "window.open('"+url+"');", true);
}


Regards,
Posted
Updated 28-Sep-12 1:00am
v2

1 solution

hi,
u can provide height and width by following way

C#
var strHelp = 'dialogHeight=430px;dialogWidth=400px;scroll=no;resizable=yes;toolbar=no;status=no;menubar=no;';

 window.open("page.aspx?" + QueryStr, "popup", strHelp, null);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900