简体   繁体   English

什么是ASP.NET中的BaseDataList

[英]what is BaseDataList in ASP.NET

today I seen BaseDataList in MSDN Tutorial.But I am confuse about BaseDataLIst control / class. 今天我在MSDN教程中看到了BaseDataList 。但是我对BaseDataLIst控件/类感到困惑。 Is it concept or web form control ? 是概念还是Web表单控件? or Is it base class for DataControls in asp.NET According to msdn they were showing its similar to DataList and DataGrid controls. 还是asp.NET中DataControls的基类?根据msdn的说明,它们类似于DataList和DataGrid控件。 BaseDataList description also available from .Net 2.0 to till now. 从.Net 2.0到现在也可以使用BaseDataList描述。 Can you please answer to understand concept. 您能否回答以了解概念。 Thanks in advance 提前致谢

It is not a control, it's an abstract class meaning that it provides base functionality that must be inherited by another class to be used. 它不是控件,而是抽象类,意味着它提供了必须由另一个类继承才能使用的基本功能。 In this case it provides common functionality for the DataList and DataGrid controls so that methods like GetData and events like SelectedIndexChanged are available to both. 在这种情况下,它为DataList和DataGrid控件提供了通用功能,因此诸如GetData之类的方法和诸如SelectedIndexChanged之类的事件都可用于两者。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM