Solved

respose.redirect

Posted on 2013-11-14
2
158 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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