(Forum Q & A Drop) How to get the value of the control in the page containing this user control within the user control

xiaoxiao2021-03-05  27

For example, there is a user control in the page, the user control wants to get the value of a Label in the page (this Label is not in this user control)? ((Label) ((System.Web.ui.page) System.Web.httpContext.current.handler) .findControl ("Test")). Text (Label ID = "Test" in the page) Other controls Equation

转载请注明原文地址:https://www.9cbs.com/read-37291.html

New Post(0)