Get the App
SLTechnology News&Howtos  ›  Development  › 

How to close the child page and refresh part of the control data in the parent page in web development

Shulou Source: shulou.com Published: 2022-06-03 07:42:58 11月15日 Update

This article mainly introduces how to close the child page in web development to refresh part of the control data in the parent page. It has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.

Father

1. Create a new button

The code is as follows:

2.JS

The code is as follows:

function btnFreshData() {

document.getElementById("btnFresh").click();

}

Son

1.cs

The code is as follows:

ClientScript.RegisterStartupScript(Page.GetType(), "", "window.opener.btnFreshData();window.open('','_self');window.close();");

Thank you for reading this article carefully. I hope that Xiaobian will share the article "How to close the child page in web development and refresh some control data in the parent page". This article is helpful to everyone. At the same time, I hope that everyone will support you a lot and pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!

Tags: Pages articles code controls data parts development value interests at the same time buttons more friends knowledge editing industry information information channels channels references Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Apple Linux Shulou Information Shulou Tech Info