问题描述
解释.............................................. .............
Explain...........................................................
推荐答案
使用FindControl从代码隐藏页面中的函数访问控件,访问另一个容器内的控件,或者调用者无法直接访问目标控件的其他情况。仅当控件直接包含在指定容器中时,此方法才会找到控件;也就是说,该方法不会在控件中的控件层次结构中进行搜索。
Use FindControl to access a control from a function in a code-behind page, to access a control that is inside another container, or in other circumstances where the target control is not directly accessible to the caller. This method will find a control only if the control is directly contained by the specified container; that is, the method does not search throughout a hierarchy of controls within controls.
控制:
Controls:
ASP.NET Web服务器控件是ASP.NET网页上的对象,它们在请求页面时运行,并将标记呈现给浏览器。许多Web服务器控件类似于熟悉的HTML元素,例如按钮和文本框。其他控件包含复杂的行为,例如日历控件和管理数据连接的控件。
ASP.NET Web server controls are objects on ASP.NET Web pages that run when the page is requested and that render markup to a browser. Many Web server controls resemble familiar HTML elements, such as buttons and text boxes. Other controls encompass complex behavior, such as a calendar controls, and controls that manage data connections.
下次使用Google。
Next time use Google.
这篇关于Gridview中Control和findcontrol有什么区别。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!