Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MVC - get an unbound ViewModel property back to controller

Status
Not open for further replies.

LV

Programmer
Nov 1, 2000
1,184
0
0
US
I have a complex type property on my ViewModel. This property is not bound to any control on the View; however, when the ViewModel is posted back to the controller, I still need a handle to this property. Currently is coming back as null, and I'm wondering what would be the best way to persist it. Using a hidden field doesn't appear to be the best solution. A custom model binder could probably be a solution, but I was curious if somebody had the same issue and what the resolution was. Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top