473,788 Members | 2,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.redire ct(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.a sp? target="_parent ">

Is there a way to specify targets in ASP redirects?
Oct 28 '05 #1
9 2291
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.Redir ect("InLineFull TicketInfo.asp? TicketID="&strT icketID)

url = "DisplayFullTic ketInfo.asp?Tic ketID="&strTick etID 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 = "DisplayFullTic ketInfo.asp?Tic ketID="&strTick etID response.write( " ")
response.write( "<script>" & vbCrLf)
response.write( "parent.framena me.location.rep lace('" & url & "');")
response.write( vbCrLf & "</script>")
Oct 28 '05 #3
middletree wrote on 28 okt 2005 in microsoft.publi c.inetserver.as p.general:
In using a page with IFrame, I woudl like to write a line like this:

If (certain criteria met) then
response.redire ct(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.a sp? 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.hr ef = 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********@ver ywarmmail.com> wrote in message
news:uA******** ******@tk2msftn gp13.phx.gbl...
In using a page with IFrame, I woudl like to write a line like this:

If (certain criteria met) then
response.redire ct(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.a sp? 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********@ver ywarmmail.com> wrote in message
news:uA******** ******@tk2msftn gp13.phx.gbl...
In using a page with IFrame, I woudl like to write a line like this:

If (certain criteria met) then
response.redire ct(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.a sp? 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******@NOyah oo.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******@NOyah oo.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******@NOyah oo.SPAMcom> wrote in message
news:e7******** *******@TK2MSFT NGP15.phx.gbl.. .
Stefan Berglund wrote:
On Sun, 4 Dec 2005 14:02:01 -0500, "Bob Barrows [MVP]"
<re******@NOyah oo.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*********@ho tmail.com> wrote in message
news:e7******** ********@TK2MSF TNGP10.phx.gbl. ..
I am the real Kyle.
Didn't realize the thread was so old.

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:e7******** *******@TK2MSFT NGP15.phx.gbl.. .
Stefan Berglund wrote:
On Sun, 4 Dec 2005 14:02:01 -0500, "Bob Barrows [MVP]"
<re******@NOyah oo.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
1605
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. So onsubmit of the form it checks that the values are less than 2. SO far I have -
1
1192
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++) { System.out.println(ix);
0
1103
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 trouble making the code at the end of Chapter 5 -- the sort function that uses function pointers -- to work on my machine (233 Mhz iMac, 160 MB RAM, OS 9.2 ; MPW environment). When I try to compile sort.c with the Symantec C compiler it gives me all...
27
3386
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 trouble making the code at the end of Chapter 5 -- the sort function that uses function pointers -- to work on my machine (233 Mhz iMac, 160 MB RAM, OS 9.2 ; MPW environment). When I try to compile sort.c with the Symantec C compiler it gives me all...
17
2417
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) } and call it 50 times, will it cause problems because you are not
5
1348
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 expression? If this kind of non-matching grouping expression doesn't exist, what's an alternate way to have the regexp engine (perl in my case), match "anything but 'abc'"?
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10110
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.