asp.net - modalpopup extender with iframe is not working -
I'm using a modal popup to display a different page in a popup and the parent page is not editable
My code is
& lt; ASP: Button ID = "BTN model popup" runat = "server" text = "" visible = "false" /> & Lt; Asp: ModalPopupExtender ID = "btnModalPopup_ModalPopupExtender" behavior ID = "btnModalPopup_ModalPopupExtender" runat = "server" PopupControlID = "ModalPopup" BackgroundCssClass = "ModalPopupBG" DynamicServicePath = "" enabled = "" TargetControlID = "btnModalPopup" & gt; & Lt; / ASP: ModalPopupExtender & gt; & Lt; Div id = "modalopopup" runat = "server" & gt; & Lt; Iframe id = "iframePopup" runat = "server" width = "700" scrolling = "yes" height = "500" & gt; & Lt; / Iframe & gt; & Lt; / Div & gt; and the code behind
iframePopup.Attributes.Add ("src", "default.aspx"); BtnModalPopup_ModalPopupExtender.Show (); But iframe is not showing a popup in the main page, please any body can help me
set button visible =" true " & amp; Style = "Display: None"; : & lt; ASP: Button ID = "BTN model popup" runat = "server" style = "display: none;" Visible = "true" /> visible = "true" ensures that the control is provided.
And, style = "display: none"; Hide controls.
Comments
Post a Comment