Click here to Skip to main content
12,396,230 members (68,855 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » Data » Downloads

Stats

28.8K views
552 downloads
29 bookmarked
Posted

Generic Paging for Recordset with Next Back Navigation

, 20 Jun 2005 CPOL
This article is basically about a Paging control required for project purposes. One can use this just by changing three parameters.
<%@ Page language="c#" Codebehind="Basic.aspx.cs" AutoEventWireup="false" Inherits="Paging.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>WebForm1</title>
		<LINK href="../styles/styles.css" rel="STYLESHEET" type="text/css">
		</STYLE>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script language="JavaScript"><!--
	function addDays(myDate,days) 
	{
		//return new Date(myDate.getTime() + days*24*60*60*1000);
		myDate.setDate(myDate.getDate()+days);
		
		return myDate;
	}

	
//--></script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table2" style="Z-INDEX: 108; LEFT: 32px; POSITION: absolute; TOP: 136px" cellSpacing="1"
				cellPadding="1" width="300" border="1">
				<TR>
					<TD>
						<asp:Label id="Label2" runat="server">Label</asp:Label></TD>
					<TD style="WIDTH: 256px">
						<asp:DropDownList id="ddlTotalRec" runat="server" Width="216px" AutoPostBack="True">
							<asp:ListItem Value="100">Record1(100)</asp:ListItem>
							<asp:ListItem Value="200">Record2(200)</asp:ListItem>
							<asp:ListItem Value="300">Record3(300)</asp:ListItem>
							<asp:ListItem Value="400">Record4(400)</asp:ListItem>
							<asp:ListItem Value="555">Record5(555)</asp:ListItem>
							<asp:ListItem Value="0">Record(0)</asp:ListItem>
						</asp:DropDownList></TD>
					<TD></TD>
				</TR>
				<TR>
					<TD></TD>
					<TD style="WIDTH: 256px">
						<asp:Label id="Label1" runat="server" Width="168px" Height="40px">Label</asp:Label></TD>
					<TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</TD>
				</TR>
				<TR>
					<TD>
						<asp:Button id="btnPrev" runat="server" Text="<<"></asp:Button></TD>
					<TD style="WIDTH: 256px">
						<asp:Table id="tblPaging" runat="server" cellspacing="0" Runat="server"></asp:Table></TD>
					<TD>
						<asp:Button id="btnNext" runat="server" Text=">>"></asp:Button></TD>
				</TR>
			</TABLE>
			<asp:table CssClass="selection" id="tbPickList" cellspacing="0" align="center" runat="server"
				Caption="Pick List Options" Width="312px" Font-Size="X-Small" GridLines="Horizontal" CellPadding="0"
				BorderWidth="1px" BorderStyle="Solid" BorderColor="Navy"></asp:table>
			<asp:table id="Table1" runat="server" BorderColor="Navy" BorderStyle="Solid" BorderWidth="0"
				CellPadding="0" GridLines="Horizontal" Font-Size="X-Small" Width="100%" Caption="Pick List Options"
				align="center" cellspacing="0"></asp:table>
			<asp:Button id="Button1" style="Z-INDEX: 104; LEFT: 544px; POSITION: absolute; TOP: 8px" runat="server"
				Text="Button"></asp:Button>
		</form>
	</body>
</HTML>

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)

Share

About the Author

santosh poojari
Technical Lead
India India
Whatsup-->Exploring--> MVC/HTML5/Javascript & Virtualization.......!
www.santoshpoojari.blogspot.com

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 21 Jun 2005
Article Copyright 2005 by santosh poojari
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid