Hello, in form 1, I have a button which has an event handler that executes the code below. when the button is clicked, Form2.aspx opens in a new window. Form 2 opens and minimizes itself automatically. the user has to click on it in the taskbar to maximize. Please help. Dim url As String = "Form2.aspx?Name=" & txtName.Text.Trim
Dim fullURL As String = "window.open('" & url & "', '_blank', 'height=250,width=1000,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,titlebar=no');"
ScriptManager.RegisterStartupScript(Me, GetType(String), "OPEN_WINDOW", fullURL, True)
yes it opens. but the pop up window hides behind the main IE window. so the user has to look for it in the taskbar. does this have anything to do with IE settings?
RobbieDotNet
Member
1 Points
8 Posts
window.open
Dec 28, 2012 06:30 PM|LINK
Hello, in form 1, I have a button which has an event handler that executes the code below. when the button is clicked, Form2.aspx opens in a new window. Form 2 opens and minimizes itself automatically. the user has to click on it in the taskbar to maximize. Please help. Dim url As String = "Form2.aspx?Name=" & txtName.Text.Trim Dim fullURL As String = "window.open('" & url & "', '_blank', 'height=250,width=1000,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,titlebar=no');" ScriptManager.RegisterStartupScript(Me, GetType(String), "OPEN_WINDOW", fullURL, True)adamturner34
Contributor
4394 Points
1102 Posts
Re: window.open
Dec 28, 2012 06:53 PM|LINK
can you copy fullURL and past it into a new window and the page loads?
chetan.sarod...
All-Star
66529 Points
11265 Posts
Re: window.open
Jan 01, 2013 08:40 AM|LINK
Refer this
http://delroger.wordpress.com/2008/03/26/ajax-an-update-panel-and-opening-a-new-window/
http://stackoverflow.com/questions/8241746/calling-window-open-from-within-an-updatepanel
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
RobbieDotNet
Member
1 Points
8 Posts
Re: window.open
Feb 21, 2013 06:29 PM|LINK
yes it opens. but the pop up window hides behind the main IE window. so the user has to look for it in the taskbar. does this have anything to do with IE settings?