Posting Page

A

Alper ÖZGÜR

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
 
M

Mohamed Sharaf

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top