i have a ModalPopupExtender
like,
<ajaxtoolkit:ModalPopupExtender ID="mpeClientView" runat="server" TargetControlID="lblClientName" PopupControlID="frmMaodalPopup" OkControlID="closeBtn"></ajaxtoolkit:ModalPopupExtender>
and an iframe
like
<iframe id="frmMaodalPopup" runat="server" src="/DashboardUserControls/ClientInformation.ascx" width="700px" height="400px" scrolling="no"></iframe>
and a LinkButton
<asp:LinkButton ID="lnkSearch1" runat="server" Enabled="true" OnClick="lnkSearch_Click" Text="Client Name"></asp:LinkButton>
When i click the LinkButton i want the iframe to popup which src is a UserControl ClientInformation.ascx. But when i click the button the iframe pop up, but it is not able to load the usercontrol. Kindly point out where i'm making the mistake
The user control can not run by himself.
You need to make an aspx page, place this control inside that page, and load that page on the iframe.