Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 iframes in aspx page... i.e., frame1 and frame2...

In frame1 the .aspx page is loaded which contains two buttons(server control).Now when the button is clicked i should be able to display another .aspx page in another iframe .i.e., frame2...


I am using c#,asp.net and visual studio 2005

How i can go for it?

Help me please.

Thanks in Advance



Regards
karan
Posted
Updated 20-May-11 20:55pm
v2

use JavaScript for this
XML
<script type="text/javascript">
        function OpenPage() {
            this.parent.document.getElementById("frm2").src = "PostRequirement.aspx";
        }
    </script>

and call this on Clientclick of button like this
<asp:button text="Click" runat="server" id="cmd1" onclientclick="javascript:OpenPage();"/>


Hope this will work for you otherwise let me know the issue.

--Pankaj
 
Share this answer
 
v2
Comments
karan joshua 7-May-11 7:26am    
thank u.. it works...

xcvcxv<>&<a href=""></a><a href=""></a>[<a href="" target="_blank"></a>]<code>
 
Share this answer
 

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