Ask a Question related to ASP.NET General, Design and Development.
-
headware #1
controlling redirection within frames
I have a question about how best to implement a redirection to a
framed version of a web site. Basically I have a web site that was
originally implemented without frames. Then it was decided that it
needed frame, so I made a page called index.aspx that contained the
frameset that initially displayed the original home page, home.aspx,
in one of the frames.
However that meant that the user had to go to
[url]http://some_stuff/index.aspx[/url] instead of [url]http://some_stuff/home.aspx[/url]
which was bad for various reasons (mostly because people are used to
home.aspx being the home page).
So we decided to make the home.aspx page redirect immediately to the
index.aspx page like this:
private void Page_Load(object sender, System.EventArgs e)
{
Response.Redirect("/some_stuff/index.aspx");
}
However, this resulted in infinite redirections. So to stop it from
redirecting to the home.aspx page after the first time, I decided to
do something like this:
private void Page_Load(object sender, System.EventArgs e)
{
if(Session["beenHome"] == null)
{
Session["beenHome"] = "dummy";
Response.Redirect("/some_stuff/index.aspx");
}
}
This works pretty well for the most part except that if after getting
to the home page (with the frames displaying correctly), the user
manually retypes the url to be [url]http://some_stuff/home.aspx[/url] they will
get the page without the frames.
I understand why things work the way they do, but I'm just wondering
if there's a better way to do this (i.e. one without the flaw I
mentioned).
Thanks,
Dave
headware Guest
-
ASP redirection
Hey, I have an idea and wonder if it's possible I want to have a form page with aboot three different drop down menus. once all the options... -
redirection
Thank you for your hel my question is: How can I redirect a visitor to a HTML site if he does not have flash plugin instaled on his computer? on my... -
Redirection Help Please
I try to use PHP to redirect to other page and failed. Please give me a help. Thanks. The script is: if($rows_num>0) { session_start();... -
slider controlling frames
I have a sprite that I want to make bigger and smaller using a slider. I have extended the sprite to 100 frames, with the size increasing up to... -
Controlling Movie Clips that exist on other frames
I am having a problem where I need to set a movie clip on a different frame in the movie to _visible=false before I actually go to that frame. ...



Reply With Quote

