indecisive
New Member
When I use the Server.Transfer("Page.aspx") method, it will transfer me to the requested page, but the address bar will stay one step behind until the page is redisplayed by causing a PostBack.<BR><BR>This is a problem when passing data using Server.Transfer("Page.aspx?CatID=" + catID), as it doesn't update to the new value until some form of post back is invoked.<BR><BR>Has anyone else experienced a similar problem, or know of a solution or alternative method for doing this?<BR><BR>Many thanks in advance for you help.<BR>JamieI had a simlar problem using Server.Transfer on a login page. I just used response.redirect instead and it worked fine.<BR><BR>I dont understand why though, perhaps I should have found out.<BR><BR>GazHow do use response.redirect then, I have never come across it?<BR><BR>JamieIt basically works the same way<BR>ie.<BR>Response.redirect("yournewpage.aspx")<BR><BR>Let me know how you get on.<BR>Gaz<BR>Many thanks. That works fine now. Do you know how this method is different to the Server.Transfer method?Server.Transfer carries out the redirection on the server. Also it will still process anything on the current page up to the point of the transfer.<BR>Redirect will cease processing and pass control to the new page. This is done on the client so effectively involves 2 calls, 1 for the page and another for the redirected page.