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

  • SEARCH
  • Home
  • 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 129239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:45:37+00:00 2026-05-11T05:45:37+00:00

Since I have decided to let RC go while staying with Beta for now,

  • 0

Since I have decided to let RC go while staying with Beta for now, I have no way of knowing whether a strongly typed RedirectToAction has been added. Has anybody tried it and is there a strongly typed RedirectToAction (and maybe ActionLink) in RC?

  • 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. 2026-05-11T05:45:38+00:00Added an answer on May 11, 2026 at 5:45 am

    No, it doesn’t.

    protected RedirectToRouteResult RedirectToAction<T>(Expression<Action<T>> action, RouteValueDictionary values) where T : Controller {     var body = action.Body as MethodCallExpression;      if (body == null)     {         throw new ArgumentException('Expression must be a method call.');     }      if (body.Object != action.Parameters[0])     {         throw new ArgumentException('Method call must target lambda argument.');     }      string actionName = body.Method.Name;      var attributes = body.Method.GetCustomAttributes(typeof(ActionNameAttribute), false);     if (attributes.Length > 0)     {         var actionNameAttr = (ActionNameAttribute)attributes[0];         actionName = actionNameAttr.Name;     }      string controllerName = typeof(T).Name;      if (controllerName.EndsWith('Controller', StringComparison.OrdinalIgnoreCase))     {         controllerName = controllerName.Remove(controllerName.Length - 10, 10);     }      RouteValueDictionary defaults = LinkBuilder.BuildParameterValuesFromExpression(body) ?? new RouteValueDictionary();      values = values ?? new RouteValueDictionary();     values.Add('controller', controllerName);     values.Add('action', actionName);      if (defaults != null)     {         foreach (var pair in defaults.Where(p => p.Value != null))         {             values.Add(pair.Key, pair.Value);         }     }      return new RedirectToRouteResult(values); } 

    That should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have finally decided to go with the Entity Framework since it has the
Its been a while since i have coded c++ and i have forgot an
Let's say i'm trying to allocate 100 bytes, but since I don't have 100
I am not sure my title is correct or not since I have no
I am working on an application for android and we since we have lots
I am new to Oracle. Since we have rewritten an earlier application , we
I would like to publish a website using msbuild. Since I have a website
I am using SignalR in my MVC3 application, and since I have implemented StructureMap
This was working correctly in Visual Studio 2008, but since I have switch to
I've been trying to use 'import poplib' to access gmail, since I have Pop

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.