473,386 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

URL parameters in a response.redirect

I need to do a redirect whereas the target URL is going to another
browser window. The following is not valid :

''''
Response.Redirect("admin-login.aspx" target="blank")
''''

....giving me a " Comma, ')', or a valid expression continuation
expected." error.
Jul 19 '05 #1
2 6577
You cannot target another window with a server redirect. You will need to
do some client side scripting to do this. Here's the reference to the
Response object proving my point.
http://msdn.microsoft.com/library/de...om_resomre.asp

"Chumley the Walrus" <sp*******@yahoo.com> wrote in message
news:1e**************************@posting.google.c om...
I need to do a redirect whereas the target URL is going to another
browser window. The following is not valid :

''''
Response.Redirect("admin-login.aspx" target="blank")
''''

...giving me a " Comma, ')', or a valid expression continuation
expected." error.

Jul 19 '05 #2
Chumley the Walrus wrote on 03 aug 2004 in
microsoft.public.inetserver.asp.general:
I need to do a redirect whereas the target URL is going to another
browser window. The following is not valid :

''''
Response.Redirect("admin-login.aspx" target="blank")
''''

...giving me a " Comma, ')', or a valid expression continuation
expected." error.


If you are referring to asp.net:
I cannot answer this.
This is a classical ASP NG.
I doubt howerver if it is legally possible to do that.

If, however you are referring to classical ASP response.redirect:
response.redirect is totally a serverside statement, any clientside code
[such as target="blank"] cannot be not working.
ASP does not know about client windows.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul M. | last post by:
Hi, I am trying to populate 3 paramters in an asp .net (vb) page redirect, the first one is ok ok and gets populated by the other two get inserted into the url for the redirect as empty strings!...
6
by: Archana | last post by:
Hi, I want to forward a request as it is from an aspx page(could be a web service too) in one application to another aspx page in a different application. The intial request will be having...
1
by: Tony Zoccolillo | last post by:
I have a toolbar aspx page in a frameset. On the toolbar is a dropdownlist. The frameset is launched from an outside source and comes in with a specific parameter for the module desires, like......
3
by: JohnZing | last post by:
hi, i have a question about redirect, parameters and anchors i want to do the following redirect (just an example) Response.Redirect("default.aspx?d=ev&eid=7") but i want also to add #forum...
2
by: Alex Nitulescu | last post by:
Hi. I have tried to pass two parameters, like this: Response.Redirect(String.Format("NewPage.aspx?Username={0}, Pass={1}", txtUserName.Text, txtPass.Text)) But if I pass Username="Alex" and...
5
by: Apollo0130 | last post by:
hi, i want to pass a parameter (a string) between two forms. i have a Webform A (default.aspx) with a button and a Webform B (detail.aspx). i want to click the button and open the webform B with...
8
by: only_me | last post by:
Having a bit of trouble here moving to .net. very familiar with the classic ASP way of doing things but can't quite see the wood for the trees here in ..net Classic ASP On a form you have a...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
2
by: =?Utf-8?B?U3RldmVuIFRhbmc=?= | last post by:
I'm creating a XBAP application and want it take some input from webpage dynamically? what is the best way? how to do it? Best Regards Steven -- ======================= Steven Tang SYWWUYU)
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.