c# - How to get the clicked LinkButton text in GridView to a label in Popup Panel -
c# - How to get the clicked LinkButton text in GridView to a label in Popup Panel -
i using modal popup within gridview linkbutton.
what need utilize value of clicked linkbutton appear on label on popup panel
<asp:gridview id="gridview1" runat="server"> <columns><asp:templatefield> <itemtemplate> <asp:linkbutton id="linkbutton1" runat="server" onclick="linkbutton1_click" text='<%#eval("empname") %>'></asp:linkbutton> </itemtemplate> </asp:templatefield></columns> </asp:gridview> <asp:linkbutton id="lnkdummy" runat="server"></asp:linkbutton> <asp:modalpopupextender id="linkbutton1_modalpopupextender" runat="server" dynamicservicepath="" enabled="true" targetcontrolid="lnkdummy" popupcontrolid="panel1"> </asp:modalpopupextender> <asp:panel id="panel1" runat="server" height="164px" width="284px" backcolor="#ccccff" ><br /><br /> <center><asp:label id="label2" runat="server" text="label"></asp:label><br /><br /> <asp:textbox id="textbox1" runat="server"></asp:textbox><br /><br /> <asp:button id="button1" runat="server" text="do"/></center> </asp:panel>
code
protected void linkbutton1_click(object sender, eventargs e) { linkbutton lnk = (linkbutton)sender; label2.text = lnk.text; linkbutton1_modalpopupextender.show(); }
c# asp.net .net gridview modalpopupextender
Comments
Post a Comment