Solved

respose.redirect

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

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 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

17 Experts available now in Live!

Get 1:1 Help Now