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

I have two frames in test.aspx page.

 <frameset rows="50%,*" bordercolor="#cc0000" scroll="no">
        <frame src="test.aspx" width="90%"  name="main" scroll="auto"></frame>
       <frame src="https://10.125.10.138/cms/test.aspx" width="90%"  name="main1" scroll="auto"></frame>
</frameset>


main frame contains local test.aspx
wheras main1 frame contains test.aspx from remote server

main frame page has a button,
main1 frame page has lable

when i click button, label should display "Hello"

------------------------------------

what i am doing is

on buttonClientClick calling javascript function

C#
function main1()
{
    parent.main1.document.form1.lblAnswer.text ="Hello"    
}



but it gives error like "Access is denied"

how can i disply "Hello" on main1 frame page label when button on main frame page is clicked
Posted
Comments
Shelby Robertson 21-Feb-13 10:36am    
I don't think you can do such a thing unless the frames are from the same domain.

1 solution

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