Click here to Skip to main content
15,799,491 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#, and visual studio 2005

How i can go for it?

Help me please.

Thanks in Advance

Updated 20-May-11 21:55pm

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

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.

Share this answer
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