Partial view updating in MVC Razor

Posted by Venkatesh under ASP.NET MVC on 7/2/2014 | Points: 10 | Views : 2103 | Status : [Member] | Replies : 1
Hi Everyone,

I am working mvc4 with razaor. i have a.cshtml file it has one controller. in that page having one form which has fields and gridview. if we click on search button one popup should open, there he will search the records. then that result will be displayed in gridview.popup window gridview having checkbox control. so user will select the records. popup window having add button. if user select the records and click on add button. those selected records will be come to the parent window with a gridview i.e., a.cshtml file. in that gridview having textbox user will enter the values when he click on submit button. these records will be save in to the database. how can we do this in MVC. one more important is here no postback will not allowed.



Posted by: Sheonarayan on: 7/3/2014 [Administrator] HonoraryPlatinum | Points: 25

Hi Venkatesh,

Giving the entire source code your problem is difficult here however I have tried to write an article related with updating partial view without page refresh with the search result here This will definitely help you in what you want to do.

Regarding getting data from parent window to child window, visit this article

In the same way, there is a way to select record using checkbox also and I have written this article also, kindly search in the Article section.

I hope all above would give you hint for a good start.

Good luck


Sheo Narayan

Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response