Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

respose.redirect

Posted on 2013-11-14
2
Medium Priority
?
176 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 84

Accepted Solution

by:
Dave Baldwin earned 1000 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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

783 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