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 6915935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:32:18+00:00 2026-05-27T09:32:18+00:00

in MVC3, is route data always in the modelState collection, or is it only

  • 0

in MVC3, is route data always in the modelState collection, or is it only in the modelState collection if that key is specifically requested as per the model binder for the applicable controller action ?

To illustrate:

public HomeController { ActionResult Index(string id)

Home/Index/5?something=else

Would the modelState dictionary have the key something and value else, or would it only have the key id?

  • 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-27T09:32:19+00:00Added an answer on May 27, 2026 at 9:32 am

    It is only in the ModelState when it is part of the action method argument(s). To get other route info, you need to look at the controller’s RouteData property.

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

Sidebar

Related Questions

I use asp.net mvc3 and I want to write route that has no end..
I have this route that worked before we upgraded our application to MVC3: routes.MapRoute(
I have an MVC3 View that's posting back a set of input values via
I am using the below route in MVC3 application context.MapRoute(RoutName, GetReport/{Id1}/{Id2}/{requestId}/{customerId}/ {CustomerVersion}/{Code}, new {controller=
In MVC3, I have the following areas: Mobile Sandbox Then i route maps like
I have MVC3 application with SSL. I want particular page URL should always add
I have added an MVC3 web application to an existing website that consists of
I have an mvc3 web page that takes a url parameter representing a date,
I have an ASP MVC3 application that has several HttpPost ActionResult methods. During a
I'm working on upgrading an application from MVC3 to MVC4 and noticed something that

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.