Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

On Button click event I am calling another page through IFrame.

JavaScript
 function ShowIFrame() {
            var modal = $find("newtest");
            $("#dialog").empty();
            $("#dialog").append("<iframe frameborder='0' sandbox='allow-top-navigation' target='_Parent' seamless='seamless' width='100%' height='100%' src='ForgetPassword.aspx'></iframe>");
            modal.show();
}

On button click event in the calling page(ForgetPassword.aspx) I want to close the above IFrame.
I have tried this.
C#
ScriptManager.RegisterClientScriptBlock(this, GetType(), "Authentication Type", "javascript:function(){window.parent.document.getElementById('dialog').visible = false;}", true);


But it's not working for me. Please help.
Thanks in advance
Posted
Comments
ZurdoDev 20-Dec-13 8:24am    
Why doesn't it work? Debug it.
srmohanr 22-Dec-13 22:04pm    
I have tried. But still I could not make it work.

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