How to set a control in parent window based on selection in jquery dialog
<p>I am launching an aspx page within a jquery dialog using</p>

<pre><code>var url = "SomePage.aspx";
            $("#divPop").load(url).dialog({
                position: '50px',
                modal: true,
                closeText: '',
                bgiframe: true,
                height: 'auto',
                width: '1000',
                open: function (event, ui) {


                },
                close: function (event, ui) {

                }
            }).dialog("open");
</code></pre>

<p>Within the popped up aspx on selection&lt; i pick a row in  a jqgrid. </p>

<p>On closing the dialog, I want to be able to set the value for a textbox in the 
calling page using the selection from the dialog. Different pages can 
launch the same aspx using a dialog and I wish to be able to set the value for 
the textbox with different ids in the different pages</p>
