Hi everybody...
I've a small problem

I copied a script to manage a Forum and I've adapted to my needs
But I've a problem I cannot solve
While logging out, the script calls page logout.asp
In the bottom of the script there is this code:
<%....
......Response.Redirect("page1.htm")
%>

Well, everything works, but, since I use a Framed pages the behaviour is not
what I was looking for, in the sense that, this page1.htm is not loaded in
the main frame of the existing window (that's what I want), but in a new
window.

I'd like to add something like "Target", but I have no knowledge of such
programming language and I do not know how to do

Can you help me?

Thank a lot
Sergio

Re: Problems with Response.Redirect() and Frames by Stefan

Stefan
Wed Mar 09 05:02:17 CST 2005

Response.Redirect does not support targets
See http://www.aspfaq.com/show.asp?id=2052
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"SergioBS" <a@b.cd> wrote in message news:cCAXd.4423$tY2.915@news.edisontel.com...
| Hi everybody...
| I've a small problem
|
| I copied a script to manage a Forum and I've adapted to my needs
| But I've a problem I cannot solve
| While logging out, the script calls page logout.asp
| In the bottom of the script there is this code:
| <%....
| ......Response.Redirect("page1.htm")
| %>
|
| Well, everything works, but, since I use a Framed pages the behaviour is not
| what I was looking for, in the sense that, this page1.htm is not loaded in
| the main frame of the existing window (that's what I want), but in a new
| window.
|
| I'd like to add something like "Target", but I have no knowledge of such
| programming language and I do not know how to do
|
| Can you help me?
|
| Thank a lot
| Sergio
|
|
|



Re: Problems with Response.Redirect() and Frames by SergioBS

SergioBS
Wed Mar 09 05:23:39 CST 2005


"Stefan B Rusynko" <sbr_enjoy@hotmail.com> ha scritto nel messaggio
news:eFHp2dJJFHA.1860@TK2MSFTNGP15.phx.gbl...
> Response.Redirect does not support targets
> See http://www.aspfaq.com/show.asp?id=2052

Thank you Stefan...also for the link
Actually I found something like that (I think exactly the same) but I didn't
like it too much because it require to state a URL, therefore is not
flexible, and has to be changed every time...

...but probably a programmer can set it as a variable...

anyway Thank you!

Sergio



Re: Problems with Response.Redirect() and Frames by Stefan

Stefan
Wed Mar 09 05:39:45 CST 2005

You don't need a full URL
- you can use a page name (and path if not in the same folder) as in

url = page1.htm

It's a JavaScript function you're working with
See
http://www.jokes2000.com/html/twoframes/
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"SergioBS" <a@b.cd> wrote in message news:V0BXd.4435$tY2.2504@news.edisontel.com...
|
| "Stefan B Rusynko" <sbr_enjoy@hotmail.com> ha scritto nel messaggio
| news:eFHp2dJJFHA.1860@TK2MSFTNGP15.phx.gbl...
| > Response.Redirect does not support targets
| > See http://www.aspfaq.com/show.asp?id=2052
|
| Thank you Stefan...also for the link
| Actually I found something like that (I think exactly the same) but I didn't
| like it too much because it require to state a URL, therefore is not
| flexible, and has to be changed every time...
|
| ...but probably a programmer can set it as a variable...
|
| anyway Thank you!
|
| Sergio
|
|



Re: Problems with Response.Redirect() and Frames by Jon

Jon
Wed Mar 09 07:16:35 CST 2005

Hi,
you can write out the javascript with asp, eg

<%
url = "somepage.htm"
response.write "<scri" & "pt>parent.MainFrame.location.href='" & url &
"';</script>"
%>

--
Cheers,
Jon
Microsoft MVP

"SergioBS" <a@b.cd> wrote in message
news:V0BXd.4435$tY2.2504@news.edisontel.com...
>
> "Stefan B Rusynko" <sbr_enjoy@hotmail.com> ha scritto nel messaggio
> news:eFHp2dJJFHA.1860@TK2MSFTNGP15.phx.gbl...
>> Response.Redirect does not support targets
>> See http://www.aspfaq.com/show.asp?id=2052
>
> Thank you Stefan...also for the link
> Actually I found something like that (I think exactly the same) but I
> didn't like it too much because it require to state a URL, therefore is
> not flexible, and has to be changed every time...
>
> ...but probably a programmer can set it as a variable...
>
> anyway Thank you!
>
> Sergio
>