Questions tagged [server.transfer]
106 questions
4
votes
1 answer
ASP.NET Server.Transfer() problem
I am using this code...
Server.Transfer("/Student/StudentControlPanel.aspx?username=" + username);
And getting the following Exception:
InvalidOperationException : "Failed to map the path…

user366312
- 16,949
- 65
- 235
- 452
4
votes
3 answers
How to set Response Header before Server.Transfer in Asp.Net?
I have a page where based on certain conditions I am either doing a Response.Redirect or Server.Transfer. Now I want to add a header for both the cases. So I am doing the following
Response.AddHeader("Vary", "User-Agent");
if (condition)
…

shashi
- 4,616
- 9
- 50
- 77
3
votes
1 answer
Server.Transfer not working in Application_Error
I am redirecting to Error 404 page and want to issue 404 as a response code for google engine.
We are using IIS 6 in production environment :(
Code does 404 Handling in Global.ascx.cs in Application_Error()
if ((ex is HttpException && 404 ==…

Billa
- 5,226
- 23
- 61
- 105
3
votes
1 answer
Server.transfer; how do I remove the original page content?
I have two aspx pages, the first that has 5 links. All 5 links use Server.transfer("page_x.aspx");
My problem is once the transfer is complete I'm left with my original 5 links plus the new data. How can I clear the original page's content and then…

snapplex
- 851
- 3
- 13
- 27
3
votes
2 answers
Is there a Server.Transfer() alternative to get a user's previous page?
Is there any way to know the previous page a user visited (on my site of course) from server side? I know I can do it if user was redirected before with Transfer() method. Does any history exist during session?

Anton Putov
- 1,951
- 8
- 34
- 62
3
votes
5 answers
Why we cant use Server.Transfer() to redirect on another server
I know that Server.Transfer() should be used to redirect to another ".aspx" page on the same server. But what is the reason behind why should I not use this method to redirect to aspx page on another server or html page?
Your answers are really…

Manoj Attal
- 2,806
- 3
- 28
- 31
3
votes
2 answers
Why does HTTP headers doesn't get created when I use Server.Transfer()?
I'm using an .aspx page to serve an image file from the file system according to the given parameters.
Server.Transfer(imageFilePath);
When this code runs, the image is served, but no Last-Modified HTTP Header is created.
as opposed to that same…

Abir
- 103
- 8
3
votes
2 answers
Faking MVC Server.Transfer: Response.End() does not end my thread
I have two issues here, the second one is irrelevant if the first one got answered, but still technically interesting in my opinion... I will try to be as clear as possible:
1st question: my goal is to fake a Server.Transfer in MVC, is there any…

Emmanuel Justice
- 81
- 1
- 7
3
votes
5 answers
Server.Transferrequest() and getting the current URL
Say in my 'Page_init()' of "a.aspx" i just have 'server.transferrequest("b.aspx").
This works great, displays the content for "b.aspx" and the browserurl still stays at "a.aspx".
Happy days.
However does anyone know how to see this url from my…

maxp
- 24,209
- 39
- 123
- 201
3
votes
6 answers
Passing parameters using Server.Transfer but not using query string
I have a registration form and want to transfer the user to the success page, telling him that an email was sent to his email. I need to transfer his email from the register page to the success page.
I found about Server.Transfer, but I can't find…

TheGateKeeper
- 4,420
- 19
- 66
- 101
2
votes
3 answers
Whats the namespace of Server.Transfer method?
I get a red underline under the Server Class:
Server.Transfer("~/PostEdit.aspx");
The mistake is:
Cannot access a non-static member of outer type 'System.Web.UI.Page' via nested type 'AnswerQuestion.ThreadTable'
AnswerQuestion is the partial…

Matrix001
- 1,272
- 6
- 30
- 51
2
votes
1 answer
Asp.Net Server.Transfer problem with Toolkit ScriptManager
I'm working on a site which has a toolkitscriptmanager in the master page. My problem lies when navigating to a page which performs a server.transfer. I'm actually also using url redirects, but from what I can tell, that doesn't have any bearing…

JonK
- 622
- 7
- 13
2
votes
2 answers
Which one is better Server.Transfer and Response.Redirect
Which one is better, Server.Transfer or Response.Redirect? I am looking for some explanation for this.

Student
- 3,469
- 7
- 35
- 42
2
votes
1 answer
Can not do Response.Redirect when I use WebClient with Silverlight 4.0 to call aspx page
I am working on a Silverlight Project.
When i saved a jpg picture into a memorystream to save it
into the Context.InputStream, it is working fine.
I am calling an aspx page who thread the upload into the server.
But i can not do a…

Shimon
- 21
- 1
- 3
2
votes
1 answer
SEO Question, and about Server.Transfer (Asp.net)
So, we're trying to up our application in the rankings in the search engines, and one way our SEO guy told us to do that was to register similar domains...for example we have something like
http://www.myapplication.com/parks.html
so..we acquired…

KyleGobel
- 109
- 1
- 2
- 7