Re: Frames and response.redirect

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I have no idea if this works, but i would think that it would. With that
said, you said that you have to use javascript to change go to wherever it
is you need to go. Couldn't you do something like the following? -

FormsAuthentication.SignOut()
Session.Abandon()
Response.Write(script)

where script would be a string of something like
"<script>window.location.href = bla</script>". (I don't know what the
javascript for the command would be so I doubt what i put would work).

I would think that that would work, but again I don't know for sure. Just
an idea.

-Darren Kopp
http://blog.secudocs.com/
"PKin via DotNetMonster.com" <u10324@uwe> wrote in message
news:5595d79be947c@xxxxxx
> Hi,
> I really need som help here.
> I have read a lot of thread about Frames ans response.redirect and I know
> by
> now that I cannot use response redirect and I have to use "some kind of
> javascript on the client side" according to a lot of answers. The only
> answers that have some code did not seem to work with my code?
>
> I have a login page (with no frame) and when the program accepts the login
> the page is redirected to a page with 3 frames. On the header frame there
> is
> a logout button. In the codebehind I am suppose to abandon the session and
> to
> redirect to the Login page (the one with no frames). Here is the code
> behind
> the logout button:
>
>
> FormsAuthentication.SignOut()
> Session.Abandon()
> <Here I am suppose to redirect to the login page>
>
> How Can I solve this problem?
> Can anybody help me?
>
> Thanks
> PKin
>
>
> --
> Message posted via DotNetMonster.com
> http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net/200510/1


.



Relevant Pages

  • Re: php ajax redirect
    ... > I have a Login page that checks a Db for a Un and Pw using ajax. ... I just want to redirect out to a new page and keep my _session ... but new at AJAX. ... If you're getting the output with an javascript request, sending redirect headers won't help you changing the current page. ...
    (comp.lang.php)
  • Re: Display login screen when session expires
    ... My aplication starts with a simple login window. ... is validated I redirect to an html which contains 3 frames. ... The web site I am working on has 3 frames: ...
    (comp.lang.javascript)
  • Re: Expiry in Forms authentication
    ... The easiest way to handle this is in the login page itself. ... the topmost browser window. ... the usual approach in a framed site is to redirect to the main ... > click on any one of the frames, each individual pages shows login page. ...
    (microsoft.public.dotnet.languages.csharp)
  • Display login screen when session expires
    ... My aplication starts with a simple login window. ... is validated I redirect to an html which contains 3 frames. ... The web site I am working on has 3 frames: ...
    (comp.lang.javascript)
  • Session timeout handling
    ... I placed the script in an if block, and yes, the problem I ... and I loose the other frames. ... >dont have the exact javascript, ... >has login check failure, ...
    (microsoft.public.dotnet.security)