zoukankan
html css js c++ java
为DataList和GridView内容项添加序号
DataList就在需要的地方加入这么一个Label就可以了,主要的地方就是那个Container.ItemIndex+1,+1是因为DataList的编号是从0开始的
<
asp:Label ID
=
"
lblQNum
"
runat
=
"
server
"
Text
=
'
<%# Container.ItemIndex+1 %>
'
Font
-
Bold
=
"
True
"
></
asp:Label
>
GridView也类似,稍微有点点不同,注意是
DataItemIndex
<
asp:Label ID
=
"
lblSNum
"
runat
=
"
server
"
Text
=
'
<%# Container.DataItemIndex+1 %>
'
></
asp:Label
>
查看全文
相关阅读:
vs15
Areas(区域)
池编程技术
MyBitis(iBitis)系列随笔之五:多表(一对多关联查询)
MyBatis学习总结(五)——实现关联表查询
Mapper映射语句高阶应用——ResultMap
mysql中的null字段值的处理及大小写问题
spring-boot支持双数据源mysql+mongo
No resource identifier found for attribute 'showAsAction' in package 'android'
No resource found that matches the given name 'Theme.AppCompat.Light'.
原文地址:https://www.cnblogs.com/sdjxcolin/p/1285249.html
最新文章
Nginx中文手册
对龙果支付系统的简单了解
微信支付异步回调,带你解决微信支付的深坑
搞定支付接口—支付宝即时到账支付接口详细流程和代码
Swagger与postman使用心得
api的管理工具
支付宝沙箱环境测试
mysql 下 计算 两点 经纬度 之间的距离 计算结果排序
Painting and Drawing[MSDN/Windows GDI]
Windows静态库和动态库的创建和使用(VS2005)
热门文章
能把opencv的源码也进行调试吗?(需要pdb文件才行)
各种Message中文解释(一部分)
SendMessage函数与MSDN系统预定义消息
跨平台运行的服务插件
Visual Studio Code扩展
管道
集成测试
Pycharm
jquery实现抽奖
采用管道处理请求
Copyright © 2011-2022 走看看