• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 311
  • Last Modified:

How to do Window.Open and get the new window's size maximized

Is there a way, without extensive coding or third party software to get the window opened by the Window.Open functionality to be opened maximized to the screen?

I have seen ways that allow me to position the window and speciify the width and height, but I need the window to be maximized without knowing what that size is.

The following command is in my codebehind and works for opening the window. It does not, however, maximize the screen to the window.
ClientScript.RegisterStartupScript(Me.GetType(), "MyScript", "window.open('CustomerDetailForm.aspx?Cust_Code=" + strCustCode + "','_blank','maximize=true, titlebar = no, status=yes,resizable=no,toolbar=no,menubar=no,location=yes,directories=no,fullscreen=true, scrollbars=yes, location=yes');", True)

Open in new window

0
Donna Kainer
Asked:
Donna Kainer
1 Solution
 
Paul MacDonaldDirector, Information SystemsCommented:
Without being able to check right now, what if you set width and height to 100%?
0
 
Donna KainerAuthor Commented:
Abandon this question.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now