I would recommend that you have two buttons in your PartialView Page and then depending on what button was clicked you could set the action in controller and check into that action by using which Request you have submited. i show you in example so you will get idea how to do that.
Use Ajax.BeginForm in your PartialView as below.
After submited form action will call from Controller side. we can identified which request submited by using Request["name"] attributes. I show you controller code as below.
After Return from Controller to PartialView check whether form submited successfully or not.
this is the whole process of Ajax.Beginform start to end, if you have any query or dought then you can post your comment here or email me at mehulpatelk152@gmail.com



No comments:
Post a Comment