Solved

respose.redirect

Posted on 2013-11-14
2
157 Views
Last Modified: 2013-11-25
On my page, I am trying to popup a new windows. Below does not work. I am not sure why.

response.Redirect("<script language='javascript'> window.open('" + http://www.google.com + "', 'window','HEIGHT=600,WIDTH=820,top=50,left=50,toolbar=yes,scrollbars=yes,resizable=yes');</script>")
0
Comment
Question by:VBdotnet2005
2 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 39649720
Because that is not what Response.Redirect does.  It only accepts a URL.  It won't run javascript because javascript must run in the browser.  Response.Redirect runs on the server.
http://www.w3schools.com/asp/met_redirect.asp
0
 
LVL 9

Assisted Solution

by:guswebb
guswebb earned 250 total points
ID: 39649726
You can't redirect in that fashion whilst trying to control the window's parameters. Either you redirect to the site and the browser remains 'as is' or you simply make it a clickable hyperlink which includes the JavaScript to control the new window's position, size and toolbar visibility.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now