For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > June 2007 > Differences/best way to navigate thru pages









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Differences/best way to navigate thru pages
Richard

2007-06-27, 7:12 pm

Hello,

How are the following ways to navigate the site different?
Why are there so many to do the same thing?
Which one is best to follow?

window.href.location = "..."
Server.Transfer("...")
Response.Redirect("...")

Thanks in advance,

Rick
Masudur

2007-06-28, 4:18 am

On Jun 28, 3:46 am, Richard <Rich...@discussions.microsoft.com> wrote:
> Hello,
>
> How are the following ways to navigate the site different?
> Why are there so many to do the same thing?
> Which one is best to follow?
>
> window.href.location = "..."
> Server.Transfer("...")
> Response.Redirect("...")
>
> Thanks in advance,
>
> Rick


Hi...

window.herf.location is by using javascript... is good ...
if you dont want to acomplish any job before naviating to other
location..
if you do want to perform some operation before navigation then
response.redirect is good...
because it happens in server... and so you have whole page life cycle
before client control event fires...
well server. transfer is a little bit diffrent... the bellow specified
link have a very good discustion about both
http://www.developer.com/net/asp/article.php/3299641

Thanks
Munna
http://.munnacs.110mb.com


Richard

2007-06-28, 7:11 pm

Thanks. The link was very interesting.
Are there any security difference in transferring with one or the other?

Thanks in advance,

Rick

"Masudur" wrote:

> On Jun 28, 3:46 am, Richard <Rich...@discussions.microsoft.com> wrote:
>
> Hi...
>
> window.herf.location is by using javascript... is good ...
> if you dont want to acomplish any job before naviating to other
> location..
> if you do want to perform some operation before navigation then
> response.redirect is good...
> because it happens in server... and so you have whole page life cycle
> before client control event fires...
> well server. transfer is a little bit diffrent... the bellow specified
> link have a very good discustion about both
> http://www.developer.com/net/asp/article.php/3299641
>
> Thanks
> Munna
> http://.munnacs.110mb.com
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com