ASP.NET MVC - How to work with partial views within a strongly typed view

0

could you tell me how to work in this context:

I have a strongly typed view that performs the search of some records, the search by ajax button loads a partial view in a div of the main view, then in this partial view I select some check and radios and then send all the content .

The million dollar question is, how do I send all the data in the submit, both the main view and the partial view? I ask this because being strongly typed sends only one instance of a model and not two.

Thanks in advance.

    
asked by RSillerico 05.12.2016 в 23:07
source

1 answer

0

You can modify the main model so that it has a property of the same type as the partial view model.

or with Request.Form you can get the values of the html controls of the partial view

    
answered by 07.12.2016 в 00:03