Click here to Skip to main content
15,895,667 members
Articles / Web Development / ASP.NET

Advanced Paging GridView with ASP.NET 2.0/3.5

Rate me:
Please Sign up or sign in to vote.
3.68/5 (13 votes)
7 Nov 2008CPOL 94.4K   2.3K   49  
Advanced paging GridView with ASP.NET 2.0/3.5

    

/* 以下為 GridView 分頁的 UI 特效 */
div.pagination {
	padding: 3px;
	margin: 3px;
}
div.pagination a {
	padding: 2px 5px 2px 5px;
	margin: 2px;
	border: 1px solid #AAAADD;
	text-decoration: none; /* no underline */
	color: #000099;
}
div.pagination a:hover, div.pagination a:active {
	border: 1px solid #000099;
	color: #000;
}
div.pagination span.current {
	padding: 2px 5px 2px 5px;
	margin: 2px;
	border: 1px solid #000099;
	font-weight: bold;
	background-color: #000099;
	color: #FFF;
	/*font-size: small;*/
}
div.pagination span.disabled {
	padding: 2px 5px 2px 5px;
	margin: 2px;
	border: 1px solid #EEE;
	color: #DDD;
	/*font-size: smaller;*/
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Taiwan Taiwan
A young programmer in Taipei City, Taiwan. Earn little money and just coding for fun.

Comments and Discussions