Click here to Skip to main content
15,666,553 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi I am getting the following error: The TargetControlID of 'mpePopUpInformation' is not valid. A control with ID 'lnkName' could not be found.

I have 2 .master pages, in site.master page i have written  <asp:ScriptManager ID="ScriptMgrPopUp" runat="server"></asp:ScriptManager> and in staff.master page i am just inheriting <%@ Master Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Staff.master.cs" Inherits="Administration_Staff" %>
I do not where i am getting wrong. Can anyone guide me please? Thank you in advance.

What I have tried:

I have user control which has one grid view:

<div class="panel panel-default">
    <div class="panel-body">
        <asp:updatepanel runat="server" id="updUserGrid" updatemode="conditional">
               <asp:GridView ID="dgvUsers" runat="server" AutoGenerateColumns="false" GridLines="None" CssClass="tablemargin table table-condensed" Width="100%" AllowSorting="True">
                   <asp:TemplateField HeaderStyle-HorizontalAlign="Left" SortExpression="Name" HeaderText="Name">
                      <asp:LinkButton ID="lnkName" CommandName="Name" CausesValidation="false" runat="server"></asp:LinkButton>

In the same user control I have written this for modal popup.

<form id="form1" runat="server">
        <ccll:ModalPopupExtender ID="mpePopUpInformation" runat="server" PopupControlID="PanelInfo" TargetControlID="lnkName" CancelControlID="btnCloseInfo"></ccll:ModalPopupExtender>
        <asp:Panel ID="PanelInfo" runat="server" CssClass="modalpopup">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" id="btnCloseInfo"</button>
            <div class="modal-body">
                    Register Successfully Please Cek Email for Verification
Updated 29-Oct-17 9:51am

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