Click here to Skip to main content
15,112,304 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I am using Modal popup extender to show a panel once I click on Button1 control as seen below. The code works fine.

However, instead of using Button1 control as a target (TargetControlID="Button1"), I want to use another control inside gridview, LbnInternDetail to show detail once a user click on it.

My question, how can I reference <asp:LinkButton button which is located inside a gridview
TargetControlID="GvName.Container(" XXXX ")   // not sure and do not know how 

Please help
<asp:Button ID="Button1" runat="server" Text="fill form" />
    <%--    code from 89 til 100 is modal popup--%>
    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 

    <asp:Panel ID="Panel1" runat="server" CssClass="Popup" align="center" style = "display:none">
        <iframe style=" width: 350px; height: 200px;" id="irm1" src="changePwd.aspx" runat="server"></iframe>
        <asp:Button ID="Button2" runat="server" Text="Close" />
<asp:TemplateField HeaderText="Name " InsertVisible="false" SortExpression="internName">
    <ItemStyle />
        <asp:LinkButton ID="LbnInternDetail"
            Text='<%# DataBinder.Eval(Container.DataItem,"internName") %>'
            CommandArgument='<%# Eval("internId") %>'
            ForeColor="#8C4510" runat="server"

What I have tried:

GvName.Container(" XXXX ")

not sure how
Updated 29-Apr-20 8:33am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900