I have a view with strong typed model. I have a popup (done with jquery slide) which some data from model. it has a button SEND which must send data to controller. Some of those requires validation (email for example). I also has some properties of model inside the view. They all together must be send to a controller.
How this can be done ? If possible some examples
Thank you
To send a partial data from your form, collect those information and send it as a JSON using jQuery ajax.
The MVC's built in JsonValueProviderFactory
helps to bind JSON
$.post('/controller/action',{data:JSON.stringify(myData)},function(){
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.