Using Server.transfermethod

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello

I'm using server.transfer() to navigate between pages, and I don't
understand why the URL changes while navigating.

My start page is default.aspx and from a button I want to navigate to
frmAdmin.aspx

so in the onClick event I have the following code
Server.Transfer("frmAdmin.aspx", true)

Which transfer me to the required page, so far so good, browser still
displays the URL .../default.aspx

Now I want to navigate back to the default.aspx
then I try to use Server.Transfer("Default.aspx", false)

Now the browser displays the URL .../frmAdmin.aspx, which is exactlly what I
try to avoid and what I thought server.transfer was meant to do.

Am I completlly wrong here?

cheers
Henry






.


Quantcast