Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

update panel with a modal popup

$
0
0

I have a single label that displays the user name as a concatenated string.  Clicking on the Edit button opens a modal popup that allows the user to edit the name. Clicking on the popup button updates the database. But I dont see how to trigger a update panel for the label.

 

<asp:UpdatePanel runat="server"><Triggers><asp:AsyncPostBackTrigger ControlID="btnnamecancel" EventName="Click" /></Triggers><ContentTemplate><asp:Label ID="lfullname" runat="server" /><asp:ImageButton ID="ibname" runat="server" ImageUrl="~/umw/images/icons/pencil.png" OnClick="ibname_Click" Width="16px" /></ContentTemplate></asp:UpdatePanel>

this is he modal popup

 

<asp:Panel ID="Panel1" runat="server" Height="189px" Width="260px" CssClass="modalPanel"  ><table class="auto-style1"><tr><td colspan="2" class="texthdr"></td></tr><tr><td class="auto-style2">Title:</td><td><asp:DropDownList ID="ddltitle" runat="server" AppendDataBoundItems="True"  DataSourceID="dstitle" DataTextField="title" DataValueField="titleid" ><asp:ListItem Value="0">Select </asp:ListItem></asp:DropDownList><asp:SqlDataSource ID="dstitle" runat="server" ConnectionString="<%$ ConnectionStrings:umwConn %>" SelectCommand="titlefetch" SelectCommandType="StoredProcedure"></asp:SqlDataSource></td></tr><tr><td class="gpnltxtlt">First Name:</td><td class="gpnltxtlt"><asp:TextBox ID="txtfname" runat="server" Width="129px" Text=""></asp:TextBox></td></tr><tr><td class="auto-style2">Mid Name/Initial:</td><td><asp:TextBox ID="txtmname" runat="server"></asp:TextBox></td></tr><tr><td class="auto-style2">Last Name:</td><td><asp:TextBox ID="txtlname" runat="server"></asp:TextBox></td></tr><tr><td class="auto-style2">Suffix:</td><td><asp:DropDownList ID="ddlsuffix" runat="server" DataSourceID="dssuffix" DataTextField="suffix" DataValueField="suffixid" AutoPostBack="true"><asp:ListItem Value="0">Select</asp:ListItem></asp:DropDownList><asp:SqlDataSource ID="dssuffix" runat="server" ConnectionString="<%$ ConnectionStrings:umwConn %>" SelectCommand="suffixfetch" SelectCommandType="StoredProcedure"></asp:SqlDataSource></td></tr><tr><td class="textright" colspan="2"><asp:Button ID="btnnameok" runat="server" Text="OK" OnClick="btnnameok_Click" /><asp:Button ID="btnnamecancel" runat="server" ForeColor="#003399" Text="Cancel" /></td></tr></table></asp:Panel>




Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>