ASP.NET2.0学习系列
2005-08-04 15:52
309 查看
主要学会使用SqlDataSource,ObjectDataSource,GridView,DetailsView数据控件的使用。
在我们建立数据源的时候可以用SqlDataSource,也可以用ObjectDataSource,但是一般都用
SqlDataSource,在配置数据源的连接过程中,不需要写任何代码,生成后在WEB。CONFIG中自动
建立了连接字符串,这是在ASP。MET1。0中不能做的。
在使用ObjectDataSource的时候,一般用DATASET做为源,此时可以跟其他数据控件相关联,比如
DROPDOWNLIST,这样可以使用他的SelectValue做为关联字段,在和另外的控件如GRIDVIEW关联,
这些都不需写一行代码。
一般来说,GridView,DetailsVieW一起使用,DetailsVieW相当于一个显示具体信息的摸板。
在ASP。NET2。0中缓层机智得到了很好的体现,以最小化访问数据库的冗余问题。可以在控件的
属性种轻松配置EnableCaching ,CacheDuration 等项
对于简单的数据访问,你至少应该掌握以下内容:
How to use SqlDataSource controls to bind to databases
How to use ObjectDataSource controls to bind to data components
How to create and configure data components
How to parameterize data sources using control values
How to parameterize data sources using query strings
How to use GridView and DetailsView controls
How to customize the columns in a GridView control
How to customize the rows in a DetailsView control
How to display images in DetailsView controls using ImageFields
How to update databases with ObjectDataSources, GridViews, and DetailsViews
How to configure data source controls to cache query results
How to use SQL cache dependencies to refresh cached query results
在我们建立数据源的时候可以用SqlDataSource,也可以用ObjectDataSource,但是一般都用
SqlDataSource,在配置数据源的连接过程中,不需要写任何代码,生成后在WEB。CONFIG中自动
建立了连接字符串,这是在ASP。MET1。0中不能做的。
在使用ObjectDataSource的时候,一般用DATASET做为源,此时可以跟其他数据控件相关联,比如
DROPDOWNLIST,这样可以使用他的SelectValue做为关联字段,在和另外的控件如GRIDVIEW关联,
这些都不需写一行代码。
一般来说,GridView,DetailsVieW一起使用,DetailsVieW相当于一个显示具体信息的摸板。
在ASP。NET2。0中缓层机智得到了很好的体现,以最小化访问数据库的冗余问题。可以在控件的
属性种轻松配置EnableCaching ,CacheDuration 等项
对于简单的数据访问,你至少应该掌握以下内容:
How to use SqlDataSource controls to bind to databases
How to use ObjectDataSource controls to bind to data components
How to create and configure data components
How to parameterize data sources using control values
How to parameterize data sources using query strings
How to use GridView and DetailsView controls
How to customize the columns in a GridView control
How to customize the rows in a DetailsView control
How to display images in DetailsView controls using ImageFields
How to update databases with ObjectDataSources, GridViews, and DetailsViews
How to configure data source controls to cache query results
How to use SQL cache dependencies to refresh cached query results
相关文章推荐
- theano学习入门和进阶系列2: MLP示例
- 深度学习系列教程 -1.2.4 神经网络是如何进行学习的
- MVC系列学习文章
- (七)立体标定与立体校正 【计算机视觉学习笔记--双目视觉几何框架系列】
- [Android学习系列12]关于幻灯片的实现
- Redis缓存技术学习系列之发布订阅
- Docker学习系列从零开始之centos6.5底下安装docker【一】
- 学习生物信息的系列书籍
- 孙鑫VC学习系列教程
- RabbitMQ学习系列三:.net 环境下 C#代码订阅 RabbitMQ 消息并处理
- Gradle学习系列之三——读懂Gradle语法
- JavaWeb学习总结 系列网址
- 【SignalR学习系列】2. 第一个SignalR程序
- opencv学习系列(二)---颜色识别
- 机器学习/深度学习/自然语言处理学习路线 Stanford机器学习笔记 TensorFlow人工智能引擎入门教程之系列
- Java中Annotation(注释)系列学习笔记(3)
- 深入学习C语言系列(二): #define与typedef
- 深度强化学习系列(二):强化学习基础
- 深入C#学习系列一:序列化(Serialize)、反序列化(Deserialize)
- ExtJS 学习系列(2)---Message Box 详解 (2)