Click here to Skip to main content
12,250,546 members (48,791 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » Data » Downloads

Stats

28.7K views
549 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.
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace Paging
{
	/// <summary>
	/// Summary description for Alert.
	/// </summary>
	public class Alert : System.Web.UI.Page
	{
		protected System.Web.UI.WebControls.Label Label1;
		protected System.Web.UI.WebControls.Button Button2;
		protected System.Web.UI.WebControls.Button Button1;
	
		private void Page_Load(object sender, System.EventArgs e)
		{
			// Put user code to initialize the page here
			string brScript = "<script>function CallJavaScriptFunction(){alert('Yes The Javascript Function is called');}</script>";
  
			Page.RegisterStartupScript("keyCalingJavascript",brScript);  
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{    
			this.Button2.Click += new System.EventHandler(this.Button2_Click);
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion

		private void Button1_Click(object sender, System.EventArgs e)
		{
			
		}

		private void Button2_Click(object sender, System.EventArgs e)
		{
			Page.RegisterClientScriptBlock("key","<script> alert('Yes we did it');</script>");
		}
	}
}

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.160426.1 | Last Updated 21 Jun 2005
Article Copyright 2005 by santosh poojari
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid