Chris Benoit. Christopher Michael Benoit (French pronunciation: â; May 21, 1967 â June 24, 2007) was a Canadian professional wrestler.
The problem. Say you have a website (site A) with an iframe wherein you host another website (site B). In old and unsecure browsers it was possible to do a JavaScript call from site B to site A like this: window.parent.doSomething(); Here the doSomething function is living on site A and is called by site B through its parent window.
your approach is correct but clicking the 'Button1' from the iFramePage is not necessary. the above function you can call it from OnClientClick in your iframe page by writing OnClientClick=passValue(this). It will put the content of your linkButton in a div with id 'field' in your main page.After that if you need to call the server code then you can very well call the 'Button click' from the 'passValue' function.our approach is correct but clicking the 'Button1' from the iFramePage is not necessary. the above function you can call it from OnClientClick in your iframe page by writing OnClientClick=passValue(this). It will put the content of your linkButton in a div with id 'field' in your main page.