This project is read-only.

Response.Redirect Problem

Jul 31, 2008 at 12:17 PM
hi all,
i am facing problem when i  am redirecting page from codebehind file using Response.redirect("Page2.aspx");it not changing facebook root URL . Any one please Help me out
Jul 31, 2008 at 2:43 PM
If you are using FBML there is tag "Fb:redirect"

You can use something like: Response.Write("<fb:redirect url="http://apps.facebook.com/myapp/newurl.aspx" />")

Hope this helps
Jul 31, 2008 at 4:37 PM
Thanks domagoj,
but i am not using FBML , i am using Iframe .

Aug 1, 2008 at 6:29 PM
The problem is that you're trying to redirect within an iframe. Any movement between pages in an iframe is going to take place in that iframe and not change the page's URL unless you specify a target somehow. One way to accomplish this is to Response.Write("<script>window.location.href='http://apps.facebook.com/myapp/Page2.aspx'</script>"); There may be other ways but I don't know enough about your requirements to suggest them.

Bill