Ask a Question related to ASP, Design and Development.
-
Re: Redirect to New Browser Window like Response.Redirect
That worked just fine for me as long as you put that open statement on one
line rather than 2.
"michel" <michely3k@yahoo.com> wrote in message
news:78a6bbc.0306301413.4a5706e1@posting.google.co m...('http://www.cnn.com','cnn','height=400,width=400,toolbar=n o,scrollbars=yes,> Greetings,
>
> I need to launch a new browser window in an IF, THEN statement. I
> originally had a Response.Redirect but I now need a new window. I
> have tried the following code and it is not working. Does anyone know
> any other way of accomplishing this?
>
> Response.Buffer = True [at top of page]
>
> [THEN portion of IF statement]
>
> Response.Write ("<Script Language='JavaScript'>")
> Response.Write ("window.open
>
resizable=no,menubar=no')")> Response.Write ("</Script>")
> Response.Flush
>
> [End of IF THEN statement]
>
>
> Thanks,
> Oscar
Guest
-
Response.Redirect from within a user control affects browser histo
I have an ASP .NET user control containing a data grid. The data grid has a column containing hyperlinks that redirect the user to the view page... -
response.redirect
I use Respose.Redirect quite a bit but on one of my pages it has an odd behavior. Any time I use it on this page it will come up in a new Window. I... -
asp response.redirect
> FORM ACTION="Goto_yahoo" must be Goto_yahoo.asp -
response.redirect?
Is it possible to set a interval for response.redirect? SOmething you see on different forums. I've written a page where the people can change there... -
Response.Redirect to a new browser window?
Can I do some kind of response.redirect to a new browser window? I need to use session variables in the new window and process some things on... -
Ken Schaefer #2
Re: Redirect to New Browser Window like Response.Redirect
What do you mean "it's not working"?
a) Is the javascript being written to the browser? (you can check using
view-source)
b) If so, then is the javascript valid? (the browser will tell you if there
is an error - IE has a little icon in the bottom left corner with an
exclamation mark. In Netscape/Moz you type javascript: into the address bar
to bring up the javascript console)
This "new window" thing isn't ASP per se. You are writing out client-side
code that will be processed by the browser. So you need to focus your
debugging efforts there.
Also, you should probably replace:
<script language='javascript'>
with
<script type='text/javascript'>
as the former is not HTML v4 compliant IIRC
Cheers
Ken
"michel" <michely3k@yahoo.com> wrote in message
news:78a6bbc.0306301413.4a5706e1@posting.google.co m...
: Greetings,
:
: I need to launch a new browser window in an IF, THEN statement. I
: originally had a Response.Redirect but I now need a new window. I
: have tried the following code and it is not working. Does anyone know
: any other way of accomplishing this?
:
: Response.Buffer = True [at top of page]
:
: [THEN portion of IF statement]
:
: Response.Write ("<Script Language='JavaScript'>")
: Response.Write ("window.open
:
('http://www.cnn.com','cnn','height=400,width=400,toolbar=n o,scrollbars=yes,
resizable=no,menubar=no')")
: Response.Write ("</Script>")
: Response.Flush
:
: [End of IF THEN statement]
:
:
: Thanks,
: Oscar
Ken Schaefer Guest



Reply With Quote

