asp.net + jquery ui dialog
<p>I have a main page (default.aspx) with one textbox (TextBox1) and one linkbutton (LinkButton1).</p>

<p>When clicking LinkButton1 a jquery ui dialog box opens with content loaded from page popup.aspx (using the load method).</p>

<p>Popup.aspx contains 3 linkbuttons.</p>

<p>When clicking one of the linkbuttons I would like the linkbutton text to be passed back to default.aspx and inserted into TextBox1.</p>

<p>Any solutions???</p>

<p><b>Source DEFAULT.ASPX:</b></p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
&lt;title&gt;&lt;/title&gt;
&lt;script src="http://code.jquery.com/jquery-1.8.3.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;link href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" /&gt;
&lt;script type="text/javascript"&gt;
    function OpenDialog() {
        var $dialog = $('&lt;div&gt;&lt;/div&gt;').load('./Popup.aspx').dialog({ autoOpen: false, modal: true, title: "Please select value", close: function (ev, ui) { $(this).dialog('close'); } });
        $dialog.dialog("open");
    }
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
&lt;div&gt;
    &lt;asp:TextBox ID="TextBox1" runat="server" Enabled="False"&gt;&lt;/asp:TextBox&gt;
    &lt;asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="OpenDialog(); return false;"&gt;Open selector&lt;/asp:LinkButton&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p><b>Source POPUP.ASPX:</b></p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;asp:LinkButton ID="LinkButton1" runat="server"&gt;Value 1&lt;/asp:LinkButton&gt;
    &lt;asp:LinkButton ID="LinkButton2" runat="server"&gt;Value 2&lt;/asp:LinkButton&gt;
    &lt;asp:LinkButton ID="LinkButton3" runat="server"&gt;Value 3&lt;/asp:LinkButton&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
