Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > very basic redirect question

Reply
Thread Tools

very basic redirect question

 
 
middletree
Guest
Posts: n/a
 
      10-28-2005
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?


 
Reply With Quote
 
 
 
 
middletree
Guest
Posts: n/a
 
      10-28-2005
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.


 
Reply With Quote
 
 
 
 
middletree
Guest
Posts: n/a
 
      10-28-2005
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>")


 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      10-28-2005
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)

 
Reply With Quote
 
Kyle Peterson
Guest
Posts: n/a
 
      12-04-2005

http://www.powerasp.com/content/hint...asp-frames.asp


"middletree" <> wrote in message
news:...
> 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?
>
>



 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      12-04-2005
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" <> wrote in message
> news:...
>> 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"


 
Reply With Quote
 
Stefan Berglund
Guest
Posts: n/a
 
      12-04-2005
On Sun, 4 Dec 2005 14:02:01 -0500, "Bob Barrows [MVP]"
<> wrote:
in <O64NwUQ#>

>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
 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      12-04-2005
Stefan Berglund wrote:
> On Sun, 4 Dec 2005 14:02:01 -0500, "Bob Barrows [MVP]"
> <> wrote:
> in <O64NwUQ#>
>
>> 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"


 
Reply With Quote
 
Larry Randolf
Guest
Posts: n/a
 
      12-06-2005
I am the real Kyle.
Didn't realize the thread was so old.

"Bob Barrows [MVP]" <> wrote in message
news:e7AnYUR%...
> Stefan Berglund wrote:
>> On Sun, 4 Dec 2005 14:02:01 -0500, "Bob Barrows [MVP]"
>> <> wrote:
>> in <O64NwUQ#>
>>
>>> 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"
>



 
Reply With Quote
 
Larry Randolf
Guest
Posts: n/a
 
      12-06-2005
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" <> wrote in message
news:e7GGG7o%...
>I am the real Kyle.
> Didn't realize the thread was so old.
>
> "Bob Barrows [MVP]" <> wrote in message
> news:e7AnYUR%...
>> Stefan Berglund wrote:
>>> On Sun, 4 Dec 2005 14:02:01 -0500, "Bob Barrows [MVP]"
>>> <> wrote:
>>> in <O64NwUQ#>
>>>
>>>> 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"
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A very **very** basic question mdh C Programming 57 09-26-2008 03:25 PM
very very basic question aghazalp Python 6 04-02-2006 09:35 PM
Very very very basic question Peter C Programming 14 02-14-2005 09:46 AM
Basic Q - Response.Redirect, all redirect to first Response.Redirect statement Sal ASP .Net Web Controls 1 05-15-2004 03:46 PM
very Very VERY dumb Question About The new Set( ) 's Raymond Arthur St. Marie II of III Python 4 07-27-2003 12:09 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57