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
>
查看全文
相关阅读:
ubuntu16.04下docker安装和简单使用(转)
spring security There was an unexpected error (type=Forbidden, status=403).
笔记42 Spring Web Flow——Demo(2)
Idea debug时报错:Command line is too long
特殊字符(包括emoji)梳理和UTF8编码解码原理(转)
如何理解多租户架构?(转)
Android Studio使用阿里云Aliyun Maven仓库
解决 INSTALL FAILED CONFLICTING PROVIDER
Android解决冲突
Mysql查询库、表存储量(Size)
原文地址:https://www.cnblogs.com/guanjie20/p/1505825.html
最新文章
根文件系统的原理
linux内核支持nfs挂载配置
linux内核挂载文件系统的两种方式
从samsung提供内核进行移植
内核编译出错解决
linux内核启动分析
linux内核的配置
sshSSH Secure Shell Client root用户无法登录解决办法
uboot的硬件驱动
SQL语句语法简介
热门文章
详见github
C++学习之路(七):以const,enum,inline替换#define
C++学习之路(八):关于C++提供的强制类型转换
二叉查找树、平衡二叉树、红黑树、B-/B+树性能对比
海量数据排序——如果有1TB的数据需要排序,但只有32GB的内存如何排序处理?
C++学习之路(六):实现一个String类
哈希表(二):几种常见的哈希函数(散列函数)构造方法
TCP之Nagle算法与延迟ACK
哈希表(一):解决hash冲突的几种方法
客户端远程连接docker容器中的mysql 报1251错误
Copyright © 2011-2022 走看看