Passing RecordID to Jquery UI Dialog
<p>I have a button above of my DetailsView. When I click it, it will popup an "Insert Note" dialog (another page in an iframe), this dialog box is using Jquery.  I could'nt figure out how to pass the recordID to this insert page in the dialog popup.</p>

<p>Jquery code:</p>

<pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"&gt;&lt;/script&gt; 
&lt;script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.ui/1.8.6/jquery-ui.min.js"&gt;&lt;/script&gt; 
&lt;link type="text/css" rel="Stylesheet" href="http://ajax.microsoft.com/ajax/jquery.ui/1.8.6/themes/smoothness/jquery-ui.css"&gt; 
&lt;script type="text/javascript"&gt;
    $(document).ready(function () {
        $('#AddNewProposal').live('click', function (e) {
            e.preventDefault();
            var page = $(this).attr("href")
            //var page = "ProposalCreateNew.aspx"
            var pagetitle = $(this).attr("title")
            alert(page);
            var $dialog = $('&lt;div&gt;&lt;/div&gt;')
            .html('&lt;iframe style="border: 0px; " src="' + page + '" width="100%" height="100%"  frameBorder="0"  align="middle"&gt; &gt;&lt;/iframe&gt;')
            .dialog({
                autoOpen: false,
                modal: true,
                height: 650,
                width: 900,
                title: pagetitle
            });
            $dialog.dialog('open');
        });
    });
&lt;/script&gt; 
</code></pre>

<p>I've tried this, but it gives error "Server tags cannot contain &lt;% ... %>"</p>

<pre><code>&lt;table width="80%" align="center" &gt;
    &lt;tr&gt;
        &lt;td width="20%"&gt;&lt;/td&gt;
        &lt;td width="80%" class="PageTitle"&gt;&lt;/td&gt;
        &lt;td width="20%"&gt;
            &lt;asp:Button runat="server" CommandName="AddNewProposal" ID="AddNewProposal" Text="Create New" href="ProposalCreateNote.aspx" title="Create Note" class="button3"/&gt;              
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table
--- Below is my DetailsView which has a label to display the ProposalID, so I want to grab this ID and pass it to the dialog box (URL + ID) when I click the AddNewProposal button.
&lt;asp:TemplateField HeaderText="ProposedID" SortExpression="Name" &gt; 
     &lt;ItemTemplate &gt;
          &lt;asp:Label ID="ProposalID" runat="Server" 
          style="text-align:left;" Text='&lt;%# Eval("ProposedID")%&gt;' /&gt;
     &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
</code></pre>

<p>Please help.  Thanks in advance.</p>
