I am working on asp.net 3 application. I have a view which is report of data coming from different tables. on this view, I need to create a form with input elements. This form should be submitted without postback.
1) Should I create a partial view or add it inside current view / In later case Do I need to create/update viewmodel that is passed to view?
2) How can I post the form asynchronously using partial view or inside same view ?
Regards,
Asif Hameed
Create the partial view for this form, and instead of posting back, use jQuery to handle the click event, which will fire a jQuery.post() to your Action that processes the data. Your action should then return the (updated) partial view, with which you can use
in your success event handler of the jQuery post to reload the updated partial view.