Insert Update Delete in jQuery dialog widget
<p>I want to insert a data in my SQL Server database using jQuery Dialog WIDGET. In jQuery widget, i have multiple fields and a submit button, if the user press Submit, The record will be entered into the database and dialog automatically gets closes.
The code at <a href="http://jqueryui.com/demos/dialog/#modal-form" rel="nofollow">Reference Link</a> can help pretty much, but i want to insert it into my Database. Please get me through this issue, i`m really stuck into this from quite a few days. I don't even have sample code to Post here, but what i have done up-til is:</p>

<pre><code>function linkbtnTest(abc) {
    $(abc).dialog({

        modal: true,
        buttons: { "OK": function () { $(this).dialog("Close") } },
        open: function (type, data) { $(this).parent().appendTo("form") },

        height: 600,
        width: 800
    });
}


&lt;div id='&lt;%# Eval("LCID") %&gt;' style="display: none;"&gt;
                            &lt;table&gt;
                                &lt;tr&gt;
                                    &lt;td&gt;
                                        &lt;asp:Label ID="lblInvoiceNumber" runat="server" Text="Invoice Number"&gt;
                                        &lt;/asp:Label&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;asp:Label ID="lblInvoiceDate" runat="server" Text="Invoice Date"&gt;
                                        &lt;/asp:Label&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;asp:Label ID="lblBLNumber" runat="server" Text="B/L Number"&gt;
                                        &lt;/asp:Label&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;asp:Label ID="lblBLDate" runat="server" Text="B/L Date"&gt;
                                        &lt;/asp:Label&gt;
                                    &lt;/td&gt;
                                &lt;/tr&gt;
                                &lt;tr&gt;
                                    &lt;td&gt;
                                        &lt;asp:TextBox ID="txtInvoiceNumber" runat="server"&gt;&lt;/asp:TextBox&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;asp:TextBox ID="txtInvoiceDate" runat="server"&gt;&lt;/asp:TextBox&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;asp:TextBox ID="txtBLNumber" runat="server"&gt;&lt;/asp:TextBox&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;asp:TextBox ID="txtBLDate" runat="server"&gt;&lt;/asp:TextBox&gt;
                                    &lt;/td&gt;
                                &lt;/tr&gt;
                                &lt;tr&gt;
                                    &lt;td&gt;
                                        &lt;asp:Label ID="lblVesselName" runat="server" Text="Invoice Number"&gt;
                                        &lt;/asp:Label&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;asp:Label ID="lblVoyageNumber" runat="server" Text="Invoice Date"&gt;
                                        &lt;/asp:Label&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;asp:Label ID="lblDueDate" runat="server" Text="B/L Number"&gt;
                                        &lt;/asp:Label&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;asp:Label ID="lblShipmntSchedule" runat="server" Text="B/L Date"&gt;
                                        &lt;/asp:Label&gt;
                                    &lt;/td&gt;
                                &lt;/tr&gt;
                                &lt;tr&gt;
                                    &lt;td&gt;
                                        &lt;asp:TextBox ID="txtVesselName" runat="server"&gt;&lt;/asp:TextBox&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;asp:TextBox ID="txtVoyageNumber" runat="server"&gt;&lt;/asp:TextBox&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;asp:TextBox ID="txtDueDate" runat="server"&gt;&lt;/asp:TextBox&gt;
                                    &lt;/td&gt;
                                    &lt;td&gt;
                                        &lt;asp:TextBox ID="txtShipmntSchedule" runat="server"&gt;&lt;/asp:TextBox&gt;
                                    &lt;/td&gt;
                                &lt;/tr&gt;
                            &lt;/table&gt;
                        &lt;/div&gt;
</code></pre>
