Gridview中Control和findcontrol有什么区别。 [英] What is the difference Between Control and findcontrol in Gridview.?

查看:184
本文介绍了Gridview中Control和findcontrol有什么区别。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解释.............................................. .............

Explain...........................................................

推荐答案

FindControl:

MSDN说

FindControl :
MSDN says
Quote:

使用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有什么区别。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆