How to redirect user to login screen completely instead of opening login screen in iframe - asp.net-mvc-4

I have two page A and B.I have put an iframe on page A.I have one link on page A.By clicking on this link I open page B in iframe.
After session expire if I click on this link , a login screen appear in iframe but I just want to redirect user to login screen completely instead of iframe.
How to achieve that.
Thanks

Related

How to verify whether it is successfully navigating to twitter login page after clicking on twitter icon from application

I need to verify after clicking on twitter icon whether it is sucessfully navigating to twitter login page.
I used xpath:
eg: driver.findElement(By.xpath()).click
Successfull message displaying in script but twitter login page is not displaying.
It's simple,
//wait for page to load
Assert.assertEquals("Twitter",driver.getTitle().trim())
or
if(driver.getTitle().trim().equals("Twitter")){
//good job u r inside twitter
}

How to stop redirecting the url of sign up or sign in?

I have created the sign up and sign in form as popup on menu bar. When I am entering wrong credentials I am redirected to the signup page. How can I stop this redirection?

how to open webpage in other web browser control in vb.net?

I have two we browsers in my form.
first form navigates to a website at load event.
now whenever user clicks any link after load of initial webpage, i want that link to be opened in another web browser control.
how can i do this??

How to detect if a user comes from facebook or directly

let's say I have a website, which I'm also using as a facebook app (iframed page tab of a facebook page).
I need to know if the user has opened my site via the facebook app, or not, as I want to change some css and content only if opened in facebook.
Afaik I only get signed_request the first time the user opens the iframe on fb, so I "lose" it after the user navigates on my site.
Is there a better way to do this other than storing the signed_request in session?
Thanks in advance

Authentication within page tab by redirect instead of popup

How do I redirect a user who enters a Facebook page tab that runs a Facebook application (instead of a popup to the login page of my app) and then redirect back to page tab?
Oh ok,
You need to invoke the popup on user input. If the user clicked something like "Begin Game" or whatever on the landing page, it will not get blocked by popup blockers.
It has to be in an onclick or onmouseup event etc. That will bypass popup blocking.