Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. COYes, I understand that first part. That's self explanatory... So, again, I would have to place all hiden fields in the second form instead of just hav ing them in the model? What about the 2 objects I have that are collections that were passed back to me via the first post (using the first button)? So, I would need to assign the values from the model to hidden fields? Again, what about my IEnumerable object collection with the foreach statements? If I do use a second View, can I leave the data in the model and simply pass the model to the action method?
      singulars
    2. CO@sagesky36 - The model in MVC is a mechanism that works for a single request (a single get or a single post) and allows you to pass a collection of data between the controller and the view. Once the request is finished, the model is gone. Just because you pass a model to a view does not mean that model will be there on post back. The only thing that allows it to be there on post back is if there are post variables for each of the data items. What's more, you can't post IEnumerable items, because IEnumerable is read-only. You would have to post those values to something like a List or array.
      singulars
    3. CO@sagesky36 - You have some very incorrect assumptions about how MVC works. MVC is strictly a server-side technology. But that technology uses standard Html and Http as an intermediary between requests. So anything you do in MVC has to be compatible with standard Html/Http.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload