Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7196971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:52:52+00:00 2026-05-28T20:52:52+00:00

I am developing a full-web application and I am using the ASP.NET MVC 3

  • 0

I am developing a full-web application and I am using the ASP.NET MVC 3 framework. I am implementing a subclass of ActionFilterAttribute.

I am overriding the OnActionExecuting method. If an exception is caught in OnActionExecuting method I want to redirect the client browser. The redirection URL targets an action method in one of my controllers. I want to pass data from the Exception object into the redirection URL.

Is there a way to build a URL including the Exception object and then passing the URL into the RedirectResult constructor?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:52:53+00:00Added an answer on May 28, 2026 at 8:52 pm

    Is there a way to build a URL including the Exception object and then
    passing the URL into the RedirectResult constructor ?

    No. You can pass only query string parameters like for example:

    var values = new RouteValueDictionary(new
    {
        action = "foo",
        controller = "bar",
        exceptiontext = "foo bar baz"
    });
    filterContext.Result = new RedirectToRouteResult(values);
    

    and in the target action you will be able to fetch the exception text parameter:

    public Action Foo(string exceptionText)
    {
        ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have started developing a full-web application by using the ASP .NET MVC 3
I have just started developing a full-web application by using the ASP .NET MVC
I am developing a data-driven web application using ASP.Net MVC 3. I will be
I am developing web-application using Google Maps API and ASP.NET Ajax. Here is my
I am planning on developing .NET web application which also will be accessed from
I'm developing a web application based on the Symfony 2 PHP framework. It has
While developing using ASP.net 2.0 (C#) and NHibernate 2.1.0 I am getting the error:
I have trouble sending a message via NServiceBus. I have an ASP.Net MVC web
I am developing android application. I am using the web service to retrive the
I'm developing a web app, with a full ajax ui using html, css and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.