RSS
people

Why do you want a better data paging method with Asp.Net

This is the first of a series of articles am going to write about Asp.Net 2.0 pagination and how to build a custom digg like numeric pagination control which can be used with DataList, Repeater or any other data bound controls.

NOTE: I haven’t used the .Net 3.5 DataPager control yet, so am not sure if it already addressed the scenarios in the following discussion

The default pagination in Asp.net which comes with GridView is great in terms of developer productivity and ease of use. When use with data source controls it will work without even a single line of code and it is easy to customize by setting simple properties available.

But you may need to think about writing a your own pagination logic when

  1. You need pagination with Datalist or Repeater
  2. You need search engine friendly pagination
  3. You need user friendly pagination
  4. You need clean HTML for the pagination links
  5. You need a pagination strip which will work independent of data bound controls

read more »

1 Comment | Tags: , , , , ,

Showing beautiful message boxes in Asp.Net web forms using JQuery Impromptu

Impromptu is an excellent JQuery plug-in to show beautiful message boxes in web forms. Its is easy to use and can be used to make any kind of message boxes such as alerts, confirm boxes, prompts, popup login boxes, popup input wizards etc

Confirmation message box

Confirmation message box

From their site

JQuery Impromptu is an extension to help provide a more pleasant way to spontaneously prompt a user for input. More or less this is a great replacement for an alert, prompt, and confirm.

Click here to see the DEMO and DOWNLOAD the source

read more »

21 Comments | Tags: , , , , , ,

Database driven Asp.Net JQuery Tree

Bassistance.de has a great JQuery tree plugin and I thought to make it database driven using Asp.Net and C#. JQuery tree is a highly customizable tree with lot of options available. See the full list of options available with JQuery tree here (see the functions options given in the bottom table)

Click here to see the DEMO and DOWNLOAD the source

Database Schema
For Asp.Net JQuery Tree you can use the same Asp.Net tree DB schema which I explained in my previous post.
Its an N-Level tree and can be stored in a self referencing table (a table with foreign key to the same table). The table will have a PK field ID and an FK field ParentID which will refer to the ID field of same table itself.

Asp.Net Dropdownlist tree DB Schema

Asp.Net Dropdownlist tree DB Schema

read more »

5 Comments | Tags: ,

Asp.Net Tree DropdownList & ListBox

Ever needed to display data in tree format inside an asp.net DropDownList or ListBox?.

A simple search for “tree dropdown list” returned lot of requests for asp.net dropdown tree. See here, here & here to see questions about dropdown list tree control in Asp.Net.

So I thought to blog about how to implement an asp.net tree dropdown list using c#.

One way to create dropdown list tree is show/hide JavaScript tree inside a div and simulate a dropdown display. But here am going to explain a very simple implementation using recursion. There is no JavaScript involved.

Click here to see the DEMO and DOWNLOAD the source

Features

  1. Show data in tree format inside a dropdown list or listbox.
  2. N-levels of tree nodes are possible.
  3. No JavaScript.
  4. All the usual dropdown list and listbox properties such as AutoPostaBack and multi selection is available
  5. Admin side to add/update/delete nodes to the tree

read more »

2 Comments | Tags: