same URL for each of my pages

Nov 15, 2007 at 4:41 AM
why is it that the URL for each of my pages are the same? For example, if my application has the url http://apps.facebook.com/sampleapp1, on every page (within my application) that I go to, the address bar will show this same url.

I would like to be able to distinguish between the different pages on my application and have my querystrings visible

Example:
http://apps.facebook.com/sampleapp1/Home.aspx
http://apps.facebook.com/sampleapp1/page1.aspx

Nov 18, 2007 at 8:08 PM
Your app is an iFrame, right? You can't. The navigation is happening within the context of the frame, not the browser.
Nov 19, 2007 at 4:26 PM
Edited Nov 19, 2007 at 4:27 PM
use the function below instead of response.redirect

the function can be found in the basepagehelper.

private void RedirectTopFrame(HttpResponse response, string url)
{
response.Write("<script type=\"text/javascript\">\n" +
"if (parent != self) \n" +
"top.location.href = \"" + url + @"&v=1.0" + "\";\n" +
"else self.location.href = \"" + url + @"&v=1.0" + "\";\n" +
"</script>");
response.End();
}

I'm not sure what the &v-1.0 are for. so i commented them out of my copy, you decide...

Hope this helps