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 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

Is it worth it to develop WAP webpage for cellular since now cellular have
I have got the following problem since the server has safe mode turned on,
This problem has been bothering me for sometime now, I have not settled on
Since I have started using this site, I keep hearing about the Boost library.
It's been several years since I have used regular expressions, and I was hoping
I'm currently experimenting with build script, and since I have an ASP.net Web Part
I have long since forgotten the password for the root user on one of
Sessions in PHP seemed to have changed since the last time I used them,
Since CS3 doesn't have a web service component, as previous versions had, is there
Since silverlight does not have any support for DataSets/DataTables, what would be the best

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.