I was wondering is there a way in which I can see the value of that FormCollection after form submit?
It is possible. Your code may pass the parameter into a property of the Model
that you return back after post action. return View(house);
You are returning model named house
. Just add a new public parameter to this model and assign your RegistrationID
to it.
Tip: for performance considerations, there is no need to post the FormCollection
, as it posts every item that you have in your view. Posting only the Model
that contains necessary properties with hidden model values would be a better approach.