Home > Archive > ASP .NET > February 2006 > Posting Page
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Alper ÖZGÜR 2006-02-28, 7:58 am |
| In a page i have an iframe.. and there is a session timeout counter.. When
the session timeout the login page opens in the frame but i want to do that
in the main window... How must i change the code?
Here is the code that i use for...
If Not (User.Identity.IsAuthenticated) Then
Response.Redirect("Login.aspx")
End If
| |
| Mohamed Sharaf 2006-02-28, 7:58 am |
|
You need to do so in the client script function like this
function redirect()
{
parent.window.navigate('anotherPage.htm');
}
You can inject this client side code from the server side using the
RegisterClientScriptBlock method of the Page class.
Best regards,
Mohamed Sharaf
MEA Developer Support Center
ITWorx on behalf Microsoft EMEA GTSC
| |
| Alper ÖZGÜR 2006-02-28, 7:02 pm |
| Thank you.
""Mohamed Sharaf"" <Mohamed.Sharaf@egdsc.microsoft.com>, haber iletisinde
şunları yazdı:Ek9pBRGPGHA.1388@TK2MSFTNGXA03.phx.gbl...
>
> You need to do so in the client script function like this
>
> function redirect()
> {
> parent.window.navigate('anotherPage.htm');
> }
>
> You can inject this client side code from the server side using the
> RegisterClientScriptBlock method of the Page class.
>
> Best regards,
> Mohamed Sharaf
> MEA Developer Support Center
> ITWorx on behalf Microsoft EMEA GTSC
>
|
|
|
|
|