I would like to get the selected row gridview data(which is in modal popup) back to the Parent page to populate the fields. How could this be done? I appreciate any help.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can call the modal popup in a way that expects a return value.
Inside the modal popup you’ll want to use
window.returnValue = <your value>and close the window.The simplest thing to probably do is to pass back the ID of the record you selected if you have one and pull the data from that ID.
Here is a simple example http://www.mindfiresolutions.com/Get-Return-value-from-ModalPopup-in-parent-page-329.php
Get the value from the window on close.
var returnParameter = window.showModalDialog(url, parameter);Pass the value back