zoukankan
html css js c++ java
Asp.net(c#)GridView分页时用图片显示上一页,下一页
效果展示:
需要的两张图片:
详细代码:
Code
<%
@ Page Language
=
"
C#
"
AutoEventWireup
=
"
true
"
CodeFile
=
"
Default.aspx.cs
"
Inherits
=
"
_Default
"
%>
<!
DOCTYPE html PUBLIC
"
-//W3C//DTD XHTML 1.0 Transitional//EN
"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
"
>
<
html xmlns
=
"
http://www.w3.org/1999/xhtml
"
>
<
head runat
=
"
server
"
>
<
title
>
无标题页
</
title
>
</
head
>
<
body
>
<
form id
=
"
form1
"
runat
=
"
server
"
>
<
div
>
<
asp:SqlDataSource ID
=
"
mySql
"
ConnectionString
=
"
server=(local);uid=sa;pwd=123456;database=student;
"
ProviderName
=
"
System.Data.SqlClient
"
SelectCommand
=
"
select * from score
"
runat
=
"
server
"
/>
<
asp:GridView ID
=
"
myGridView
"
DataSourceID
=
"
mySql
"
AutoGenerateColumns
=
"
True
"
runat
=
"
server
"
AllowPaging
=
"
True
"
PageSize
=
"
3
"
>
<
PagerSettings
Mode
=
"
NextPreviousFirstLast
"
FirstPageText
=
"
第一页
"
PreviousPageImageUrl
=
"
images/pageUp.gif
"
NextPageImageUrl
=
"
images/pageDown.gif
"
LastPageText
=
"
末页
"
>
</
PagerSettings
>
</
asp:GridView
>
</
div
>
</
form
>
</
body
>
</
html
>
查看全文
相关阅读:
汪博士解读PMP考试
ASP.NET编程实战宝典(光盘内容另行下载,地址见书封底)
[模板]tarjan算法求SCC
[POJ 3071]Football[概率DP]
[数学]根式有理化[高中数学技巧]
[平面几何]角格点问题
[数学]对数均值不等式
[模板][快速排序&归并排序]
[POJ]P3126 Prime Path[BFS]
每日一题_191219
原文地址:https://www.cnblogs.com/guanjie20/p/1505825.html
最新文章
使用express 框架使用node
js基础笔记
Mysql实现企业级数据库主从复制架构实战
http服务配置和apache
实验:企业级分布式存储应用与实战-mogilefs实现
tomcat
nginx实现负载均衡、缓存功能实战
LVS负载均衡DR工作流程
日志管理
[http服务]
热门文章
在centos6编译安装http-2.4
mysql
八年级地理上册(科普社)(仁爱版)
高三英语选修9(外研版)
高三英语选修11(外研版)
西游记PMP备考奇书
向上管理
Project Manager Street Smarts: A Real World Guide to PMP Skills
Project项目管理实用宝典
如何准备PMP考试
Copyright © 2011-2022 走看看