zoukankan
html css js c++ java
.net3.5正统分页控件来了(ListView和DataPager)
asp.net又新增了一个有用的控件,这次可是微软内置的控件了,看看下面的图,多了什么东西呢?
ListView和DataPager
DataPager控件能支持实现
IPageableItemContainer
接口的控件
ListView是现有控件中唯一实现此接口的控件,此控件功能还算强大,来熟悉下页面代码,以后图方面的同志,又可以少几行代码写写了
<
asp:ListView
runat
="server"
ID
="ListView1"
DataSourceID
="SqlDataSource1"
DataKeyNames
="ProductID"
>
<
layouttemplate
>
<
table
runat
="server"
>
<
tr
runat
="server"
>
<
td
runat
="server"
>
<
table
id
="itemContainer"
runat
="server"
border
="0"
style
=""
>
</
table
>
</
td
>
</
tr
>
<
tr
runat
="server"
>
<
td
runat
="server"
style
=""
>
<
asp:datapager
ID
="DataPager1"
runat
="server"
>
<
fields
>
<
asp:nextpreviouspagerfield
ButtonType
="Button"
ShowFirstPageButton
="True"
ShowNextPageButton
="False"
ShowPreviousPageButton
="False"
/>
<
asp:numericpagerfield
/>
<
asp:nextpreviouspagerfield
ButtonType
="Button"
ShowLastPageButton
="True"
ShowNextPageButton
="False"
ShowPreviousPageButton
="False"
/>
</
fields
>
</
asp:datapager
>
</
td
>
</
tr
>
</
table
>
</
layouttemplate
>
<
itemtemplate
>
<
tr
runat
="server"
style
=""
>
<
td
>
ProductID:
<
asp:Label
ID
="ProductIDLabel"
runat
="server"
Text
='<%#
Eval("ProductID") %
>
' />
</
td
><
td
>
ProductName:
<
asp:Label
ID
="ProductNameLabel"
runat
="server"
Text
='<%#
Eval("ProductName") %
>
' />
</
td
></
tr
>
</
itemtemplate
>
</
asp:ListView
>
最近好戏连台,Adobe的flash cs 3也发布了
查看全文
相关阅读:
Typora标题自动编号+设定快捷键技巧
配置redis 4.0.11 集群
学会使用 Mysql show processlist 排查问题
Golang学习的方法和建议
日志文件删除shell脚本
运维趋势2019年总结,运维就是要做到"技多不压身"
我的xshell配色方案,绿色/护眼/留存/备份
对于api接口的爬虫,通常的解决方法
maven 打包和构建的Linux命令(mvn)
Istio的流量管理入门-charlieroro编写
原文地址:https://www.cnblogs.com/Clingingboy/p/ListView.html
最新文章
Kubernetes部署通用手册 (支持版本1.19,1.18,1.17,1.16)
八个开源的 Spring Boot 前后端分离项目,一定要收藏!
招聘简章-2020年5月3日05:39:11
小公司老板的日常管理
防止自己服务器变矿机
46个Linux面试常见问题送给你
Kubernetes容器化工具Kind实践部署Kubernetes v1.18.x 版本, 发布WordPress和MySQL
Etcd常用运维命令
Logstash生产环境实践手册(含grok规则示例和ELKF应用场景)
Netfix业务运维分析和总结
热门文章
云上混沌工程实践之对照实验设计篇-收集
云上混沌工程实践之可行性评估篇-收集
云上混沌工程实践之启动篇-收集
部署Redis Cluster 6.0 集群并开启密码认证 和 Redis-cluster-proxy负载
CentOS7下普通账号通过systemctl管理服务需要输入root密码问题
MySQL5.7和MySQL8.0通用配置文件
Etcd v3版本的API
GitlabCI/CD&Kubernetes项目交付流水线实践
正数和负数的原码、反码、补码及二进制位运算
部署rabbitMQ镜像集群实战测试
Copyright © 2011-2022 走看看