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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:49:34+00:00 2026-06-15T17:49:34+00:00

I am relatively new to MVC3 and had a question about a parameter in

  • 0

I am relatively new to MVC3 and had a question about a parameter in a controller.

I have a controller that takes an id

public ActionResult ChooseItem(string id) ...

This controller’s view creates a form, and when the user submits the form it posts to this controller

[HttpPost]
        public ActionResult ChooseApp(string id, string itemID)...

The strange thing is, even though I do not have a hidden variable that stores id in the view that is POSTing to this control, the id parameter is set correctly. This is actually a good thing, but I don’t understand where the value is coming from. I have examined the POST values in Chrome dev tools and there is not an id in the form values that are POSTed. What is setting the id value correctly?

  • 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-06-15T17:49:36+00:00Added an answer on June 15, 2026 at 5:49 pm

    If you have an id value in your querystring or your route is defined and it can locate an id element in the URL it will use them. This link describes how default binder works and the priority given to where values come from http://www.howmvcworks.net/OnModelsAndViewModels/TheBeautyThatIsTheModelBinder

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

Sidebar

Related Questions

Im relatively new to the Android world but I have a quick question. I
Relatively new to python. I recently posted a question in regards to validating that
Being relatively new to the software industry I have come across a question of
I am relatively new to MVC3, and am developing a website that will need
I'm brand new to .net MVC3 so pardon my ignorance. I have a relatively
Relatively new to Cocoa here. This question is about NSFileHandle, but I got a
I am relatively new to web development and web applications. I have heard about
I'm relatively new to .NET and MVC3. I'm having some trouble with the above
Note: I'm relatively new to MVC3. Input validation seems to be pretty nice with
I have an MVC3 application, I know that for relative paths, I can use

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.