Neither
dialogWidth
nor
dialogHeight
are valid attributes for the "window features" string:
Window.open() - Web APIs | MDN[
^]
Perhaps you meant
width
and
height
instead?
NB: Most browsers will block
window.open
calls which are not triggered as the direct result of user interaction. You can open a window when the user clicks an element on the page, but you cannot open a window as soon as your page loads.
In ASP.NET, if the user clicks an element which causes a postback, that does not count as user interaction for opening a new window from script returned by the code-behind.
You'll also find that many browsers will open new windows in a new tab rather than a separate window. You will not be able to control the size of the tab, since it will be the same size as the main browser window.