server.transfer Questions

8

Solved

I have a HttpModule in C# 2.0 which handles exceptions thrown. Whenever the exception is thrown, an error page (aspx) with some querystring will be called. It is done through Server.Transfer(). Bu...
Gazo asked 2/3, 2010 at 8:21

14

Solved

In ASP.NET MVC you can return a redirect ActionResult quite easily: return RedirectToAction("Index"); or return RedirectToRoute(new { controller = "home", version = Math.Ra...
Analphabetic asked 28/4, 2009 at 19:34

6

Solved

I am using Server.Transfer. Everything works fine, but exception log shows following exception. System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortIn...
Ybarra asked 16/9, 2009 at 14:43

9

In my global I have the following code to handle when an error occurs //[..] code goes here Server.Transfer("~/Error.aspx?ErrorID=" + errorId); It used to be a Response.Redirect which worked pe...
Beardsley asked 14/2, 2014 at 14:14

16

Solved

What is difference between Server.Transfer and Response.Redirect? What are advantages and disadvantages of each? When is one appropriate over the other? When is one not appropriate?
Humo asked 22/10, 2008 at 5:34

4

Solved

I am getting an error in my asp.net app that reads "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack." protected void btnCustomerProfile...
Pentaprism asked 11/6, 2012 at 15:16

2

Solved

I avoid the default ASP.NET approach of redirecting on errors (as many people do). Clean AJAX code and SEO are among the reasons. However, I'm using the following method to do it, and it seems tha...
Washcloth asked 26/3, 2014 at 13:59

1

In my global.asax page I have the following code: Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) server.transfer("err.aspx") End Sub It does not work and I get the folowing...
Librate asked 28/8, 2013 at 19:12

1

I am using Asp.net 2.0. I do a server.transfer from page 1 to page 2. The URL remains page 1. Now I click a link on page 2 and that will transfer me to page 3. So the URL should remain page 1. Inst...
Cortisol asked 12/3, 2010 at 0:15

1

Solved

I have a custom error handler in the global.asax's Application_Error method, when an error occurs I use the following code to transfer user to the error page: Server.Transfer("/Error/"); However...
Apron asked 29/12, 2010 at 11:14

2

Any ideas how to fix the below? There is a great implementation of TransferResult available here, which worked great on MVC 1,2 but doesn't work on MVC 3 RC. public class TransferResult : Redirec...
Symonds asked 13/11, 2010 at 20:59
1

© 2022 - 2024 — McMap. All rights reserved.