In my previous post I have provided couple of examples to explain how to show a dialog box using showModalDialog javascript function. With that, I also explain how to return value from child window to parent window using returnValue attribute. Now in this post, I will explain Javascript hack to return multiple values from child window. In this hack, we will return an class instance with multiple values already populated in child window.
Our core requirement here is that when user click on a button in parent form, application should open a child dialog box. In this child dialog box, user will enter some values and click on submit button to close the window. Javascript will thereafter populate all entered values in child window to the controls in parent page.

Recent Comments