Is it okay to mix session data with form and querystring values in a custom model binder?

Posted by Byron Sommardahl on Stack Overflow See other posts from Stack Overflow or by Byron Sommardahl
Published on 2010-04-22T23:28:25Z Indexed on 2010/04/22 23:33 UTC
Read the original article Hit count: 197

Filed under:
|

Working on a custom model binder in ASP.NET MVC 2. Most of the time I am binding data from typical form or querystring data. There are times that I end up letting the model binder bind part of an object and get the rest out of session at the controller action level. Does it make better sense to bind the entire object from the model binder (e.g. querystring, form, and session)?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about modelbinders