$("#<%=btnVerify.ClientID%>").click(function() { $('#dialog-verify').dialog({ modal: true, width: 800, buttons: { Ok: function() { $(this).dialog('close'); } } }); return false; });
<div id="dialog-verify" title="Verify Trades"> <asp:UpdatePanel ID="upVerify" UpdateMode="Always" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="dlFromTrades" EventName="ItemCommand"/> </Triggers> <ContentTemplate> <div style="overflow:auto; height:125px;"> <asp:DataList ID="dlFromTrades" OnItemCommand="dlFromTrades_ItemCommand" OnItemDataBound="dlFromTrades_ItemDataBound" runat="server"> <HeaderStyle /> <HeaderTemplate> <table style="padding:2px" cellpadding="0" cellspacing="0" id="tblReviewTrades"> <tr class="MenuBarImage"> <th> </th> <th style="width:153px" align="left">Account</th> <th style="width:50px" align="left">%</th> <th style="width:175px" align="left">$ Amount</th> <th style="width:43px" align="left">Shares</th> <th style="width:30px" align="left">Fund</th> <th style="width:64px" align="left">Trade Date</th> <th style="width:64px" align="left">Settle Date</th> <th> </th> </tr> </HeaderTemplate> <ItemTemplate> <tr class="ui-widget-header"> <td style="margin:10px;" class="exchangeCol"> <asp:ImageButton ID="imgCollapse" ImageUrl="~/Images/minus.png" runat="server" /> </td> <td> <%# Eval("Account")%> </td> <td> <%# Eval("Percent")%> </td> <td> <%# Eval("Amount")%> </td> <td> <%# Eval("Shares")%> </td> <td> <%# Eval("Fund")%> </td> <td> <%# Eval("TradeDate")%> </td> <td> <%# Eval("SettleDate")%> </td> <td> <asp:ImageButton ID="imgbDeleteFromExchange" CommandName="DeleteFromExchange" ImageUrl="~/Images/delete.png" runat="server" /> </td> </tr> <tr id="trToTrades" style="border:solid 1px black;" runat="server"> <td> </td> <td colspan="8"> <asp:DataList BorderColor="Black" Width="100%" ID="dlToTrades" runat="server"> <HeaderStyle BackColor="AliceBlue" /> <HeaderTemplate> <table style="padding:2px"> <tr> <th align="left">Account</th> <th align="left">%</th> <th align="left">$ Amount</th> <th align="left">Shares</th> <th align="left">Fund</th> <th align="left">Trade Date</th> <th align="left">Settle Date</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td> <%# Eval("Account")%> </td> <td> <%# Eval("Percent")%> </td> <td> <%# Eval("Amount")%> </td> <td> <%# Eval("Shares")%> </td> <td> <%# Eval("Fund")%> </td> <td> <%# Eval("TradeDate")%> </td> <td> <%# Eval("SettleDate")%> </td> <td> <asp:ImageButton ID="imgEditToExchange" ImageUrl="~/Images/table_edit.png" runat="server" /> </td> <td> <asp:ImageButton ID="imgDeleteToExchange" ImageUrl="~/Images/table_delete.png" runat="server" /> </td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:DataList> </td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:DataList> </div> </ContentTemplate> </asp:UpdatePanel> </div>
Attachment: JQueryDialogDataListExample.zip