IFRAME nesting subpage passed value to parent page Asp.net

Source: Internet
Author: User

In the nested page, for example, to pass an image1.src = str_url, you must pass image1.src to the parent page.

Method :..........

Image1.src = str_url;

String url1 = "<SCRIPT> parent.doc ument. form1.pc1. value = '" + newname + "' </SCRIPT> ";
Response. Write (url1 );

....................

CodeExplanation: pC1 is only an HTM control placed in the hidden domain of the ambush page, that is, it is temporarily written to pc1.value. The controls on the parent page are all received and the following cannot be done! Haha

 

 

JS learning site recommendation: http://www.w3school.com.cn/js/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.