Pass selected value from Modal Popup to TextBox on Parent page in ASP.Net MVC

Last Reply one year ago By dharmendr

Posted one year ago


I have some text boxes in the parent view and one of these text boxes needs to get its value from the webgrid on modal form.

When I click on the select button in parent page, the modal bootstrap form opens. Then the user finds record from the webgrid in modal form and clicks on the webgrid selector button. The value of the selected record (code column value) should be transferred to the Parent page and the corresponding text box. During the process, the rest of the textboxes on the Parent page should not be cleared (not postback).

I've coded where the modal form opens and the records are displayed in the webgrid, But I need help and guidance on the part that needs to be transferred from Modal selected value to Parent textbox and Modal is closed.

Please see this

Thanks for the help

You are viewing reply posted by: dharmendr one year ago.