0

Just realized that mvc model binder will collect all data from route parameters + query string data + form collection data.

And i want to know the sequence of the model binder choosing these resources. In another word, if there are properties (say id, name) with same name in these 3, what is the priority?

0

1 Answer 1

0

Now i got the answer from a material.

The order is:

  1. Request.Form
  2. RouteData.Values
  3. Request.QueryString
  4. Request.Files

:)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.