|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Using Server.transfermethodI'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 I have never completely understood the second parameter of the
Server.Transfer method, but what happens if you use true the second time? The few times that I do use the Server.Transfer method (which is only to automatically display the login page when they are not already logged in), I use the overload that is just the first parameter. It probably would be good for me to understand the second parameter better, but until I do, I'm not going to try to use it. But I would also suggest that you read some of the articles on Server.Transfer vs. Response.Redirect, Server.Transfer is rarely used for all navigation. Show quoteHide quote "Henry" <n**@il.com> wrote in message news:OUjWMwFkGHA.4224@TK2MSFTNGP05.phx.gbl... > 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 > > > > > >
changing the date format in vb.net
Datasets - use 1 or many? Calling a batch file from vb.net with parameters Streaming a file to text? How to force upper case in a DataGridView column? Dealing with NULL values in Integer fields Mulples threads and impersonation What's the Best Startup Scenario for Unattended Server Execution? Handle pointers from delphi client to a vb.net dll VB.net 2005 splash screen |
|||||||||||||||||||||||