473,414 Members | 1,911 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,414 software developers and data experts.

very basic redirect question

In using a page with IFrame, I woudl like to write a line like this:

If (certain criteria met) then
response.redirect(somepage.asp)
end if

Pretty simple, except that I would like to make it to the full page. In
other words, if it were a regular HTML hyperlink, the code would be
<a href=somepage.asp? target="_parent">

Is there a way to specify targets in ASP redirects?
Oct 28 '05 #1
9 2276
I should add that I did research this in several ways, and couldn't find an
answer.

More precisely, I went to aspfaq.com and found
http://aspfaq.com/show.asp?id=2052

because of that page, I wrote this code:

'response.Redirect("InLineFullTicketInfo.asp?Ticke tID="&strTicketID)

url = "DisplayFullTicketInfo.asp?TicketID="&strTicke tID response.write("")

The part that is commented out is the old way, which, when called from a
page inside the IFrame, called my other page inside the same IFrame.
However, for reasons way too long to go into, I would like it so instead go
to the page you see in the uncommented line, but to target it to the parent.
When I tried the above code, it simply didn't redirect. No error msg was
given.
Oct 28 '05 #2
For some reason, pasting my code didn't work out right in that last post.
Here's what I meant.

url = "DisplayFullTicketInfo.asp?TicketID="&strTicke tID response.write(" ")
response.write("<script>" & vbCrLf)
response.write("parent.framename.location.replace( '" & url & "');")
response.write(vbCrLf & "</script>")
Oct 28 '05 #3
middletree wrote on 28 okt 2005 in microsoft.public.inetserver.asp.general:
In using a page with IFrame, I woudl like to write a line like this:

If (certain criteria met) then
response.redirect(somepage.asp)
end if

Pretty simple, except that I would like to make it to the full page. In
other words, if it were a regular HTML hyperlink, the code would be
<a href=somepage.asp? target="_parent">

Is there a way to specify targets in ASP redirects?


ASP does not know and is not interesed in [i]frames.
It will just sent it's rendered html-stream to wherever it is directed.
ASP redirection does not refresh a page, but asks the browser to ask for
another page.

Your question should be answered by clientside code,
such as a frame-jump-out javascript.

OT clientside script, but anyway:

<script type="text/javascript">
if (window!= window.top) top.location.href = location.href;
</script>

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 28 '05 #4

http://www.powerasp.com/content/hint...asp-frames.asp
"middletree" <mi********@verywarmmail.com> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
In using a page with IFrame, I woudl like to write a line like this:

If (certain criteria met) then
response.redirect(somepage.asp)
end if

Pretty simple, except that I would like to make it to the full page. In
other words, if it were a regular HTML hyperlink, the code would be
<a href=somepage.asp? target="_parent">

Is there a way to specify targets in ASP redirects?

Dec 4 '05 #5
I'm wondering if you are aware that you are responding to some pretty dead
threads. You may find that the OP's aren't watching them anymore, and that
you might find it more fruitful to concentrate on more recent threads.

But far be it from me to try to tell you how to spend your time ... :-)

Kyle Peterson wrote:
http://www.powerasp.com/content/hint...asp-frames.asp
"middletree" <mi********@verywarmmail.com> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
In using a page with IFrame, I woudl like to write a line like this:

If (certain criteria met) then
response.redirect(somepage.asp)
end if

Pretty simple, except that I would like to make it to the full page.
In other words, if it were a regular HTML hyperlink, the code would
be <a href=somepage.asp? target="_parent">

Is there a way to specify targets in ASP redirects?


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 4 '05 #6
On Sun, 4 Dec 2005 14:02:01 -0500, "Bob Barrows [MVP]"
<re******@NOyahoo.SPAMcom> wrote:
in <O6**************@TK2MSFTNGP14.phx.gbl>
I'm wondering if you are aware that you are responding to some pretty dead
threads. You may find that the OP's aren't watching them anymore, and that
you might find it more fruitful to concentrate on more recent threads.

But far be it from me to try to tell you how to spend your time ... :-)


Google ~powerasp~ in this group and perhaps the pattern will be revealed. I
believe this was the URL in the series of SPAMS to this group last month but I
can't find a single one of them in my reader or on the server...

---
Stefan Berglund
Dec 4 '05 #7
Stefan Berglund wrote:
On Sun, 4 Dec 2005 14:02:01 -0500, "Bob Barrows [MVP]"
<re******@NOyahoo.SPAMcom> wrote:
in <O6**************@TK2MSFTNGP14.phx.gbl>
I'm wondering if you are aware that you are responding to some
pretty dead threads. You may find that the OP's aren't watching them
anymore, and that you might find it more fruitful to concentrate on
more recent threads.

But far be it from me to try to tell you how to spend your time ...
:-)


Google ~powerasp~ in this group and perhaps the pattern will be
revealed. I believe this was the URL in the series of SPAMS to this
group last month but I can't find a single one of them in my reader
or on the server...

That was my first thought as well, but I thought I had seen Kyle around
before. Unless someone is masquerading as him ...

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 4 '05 #8
I am the real Kyle.
Didn't realize the thread was so old.

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:e7***************@TK2MSFTNGP15.phx.gbl...
Stefan Berglund wrote:
On Sun, 4 Dec 2005 14:02:01 -0500, "Bob Barrows [MVP]"
<re******@NOyahoo.SPAMcom> wrote:
in <O6**************@TK2MSFTNGP14.phx.gbl>
I'm wondering if you are aware that you are responding to some
pretty dead threads. You may find that the OP's aren't watching them
anymore, and that you might find it more fruitful to concentrate on
more recent threads.

But far be it from me to try to tell you how to spend your time ...
:-)


Google ~powerasp~ in this group and perhaps the pattern will be
revealed. I believe this was the URL in the series of SPAMS to this
group last month but I can't find a single one of them in my reader
or on the server...

That was my first thought as well, but I thought I had seen Kyle around
before. Unless someone is masquerading as him ...

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Dec 6 '05 #9
Course it probably doesn't help the confusion any when I keep forgetting I
am on larrys computer.
My laptop has been acting up.

"Larry Randolf" <la*********@hotmail.com> wrote in message
news:e7****************@TK2MSFTNGP10.phx.gbl...
I am the real Kyle.
Didn't realize the thread was so old.

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:e7***************@TK2MSFTNGP15.phx.gbl...
Stefan Berglund wrote:
On Sun, 4 Dec 2005 14:02:01 -0500, "Bob Barrows [MVP]"
<re******@NOyahoo.SPAMcom> wrote:
in <O6**************@TK2MSFTNGP14.phx.gbl>

I'm wondering if you are aware that you are responding to some
pretty dead threads. You may find that the OP's aren't watching them
anymore, and that you might find it more fruitful to concentrate on
more recent threads.

But far be it from me to try to tell you how to spend your time ...
:-)

Google ~powerasp~ in this group and perhaps the pattern will be
revealed. I believe this was the URL in the series of SPAMS to this
group last month but I can't find a single one of them in my reader
or on the server...

That was my first thought as well, but I thought I had seen Kyle around
before. Unless someone is masquerading as him ...

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Dec 6 '05 #10

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

Similar topics

6
by: Paul Fitzpatrick | last post by:
Hi, This is a real beginner question! I have a form with a few types of products. I need to limit the number that the user puts in for quantity of each product - I have to keep it below 2. ...
1
by: Rhino | last post by:
Given a loop like this: for (int ix=0; ix<myArray.length; ix++) { System.out.println(ix); } or especially this: for (int ix=0; ix<Math.sqrt(shoeSize)*hairlength/(IQ); ix++) {...
0
by: Ben Jacobs-Swearingen | last post by:
Hello, I just started learning C a couple weeks ago from Kernighan and Ritchie (first edition -- I can't afford the newer second edition), and have really enjoyed it so far. But I am having...
27
by: Ben Jacobs-Swearingen | last post by:
Hello, I just started learning C a couple weeks ago from Kernighan and Ritchie (first edition -- I can't afford the newer second edition), and have really enjoyed it so far. But I am having...
17
by: blueapricot416 | last post by:
This is a very basic question -- but I can't find the answer after looking for 20 minutes. If you code something like: function set_It() { setTimeout('Request_Complete("apple", -72)',5000) }...
5
by: Tom | last post by:
- matches "a", "b", or "c" - matches anything except "a", "b", and "c" (abc) - matches "abc", with back reference ??? - matches anything except "abc" literally?? What is the syntax for this...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.