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:

Asp.Net AJAX Poll using JQuery – A complete implementation with Admin part

In this blog post am going to explain how to develop an Asp.Net AJAX poll system using JQuery, which allows users to express there opinion and see the results. The system will have a back-end (admin part) to add and manage polls.

Click here to see the DEMO and DOWNLOAD the source

Asp.Net AJAX Poll Admin

  1. Create a new Poll with unlimited number of Choices
  2. Configure how to block repeated voting. (By IP address or Cookie)
  3. Activate/Deactivate Polls
  4. Edit/Delete existing poll

Asp.Net AJAX Poll User side

  1. Display an active poll randomly or by using the Poll ID (This is just for demo purpose you can change the logic as you wanted)
  2. Allow the user to vote and display the result without refreshing the whole page

read more »

30 Comments | Tags: , ,

ClientSideAsp.Net released

Its been long time since I am planning to start a blog on Asp.Net, AJAX, DHTML etc. The domain is registered almost 6 months ago and I finished the samples for my first tutorail 2 months ago [;)] The main reason it got delayed is because of my poor writing skills. Please adjust with me on my bad English.

As the name suggests, in this blog am mainly gonna concenrate on the client side aspects of Asp.Net like AJAX, Flex, Flash, Silverlight, CSS, HTML etc.

I have another development blog in blogspot but I got inspired from numerous wordpress + php + design blogs like Webresources Depot, Smashing Magazine, NETTUTS (all are big names [;)] ).

I am not an expert of any technology so please post if you see any bugs, improvements etc in my posts. I will try to write at least two article every month with demo and source. ClientSideAsp.Net demos will be hosted in Deynu.com.

Thanks Eddie for the excellent wordpress theme and Alex Gorbatchev for the great syntax highlighter

Happy coding…

2 Comments |