Click here to Skip to main content
Licence CPOL
First Posted 12 Jun 2006
Views 19,155
Bookmarked 24 times

Using ASP.NET, JavaScript, Css & AJAX . . . The CheckBox Way

By | 12 Jun 2006 | Article
This article uses a Yahoo style grid for showing the records and a checkbox column for selecting Multiple Records and Deleting Them Using AJAX . . .

Sample Image - GetCheckboXed.jpg

Introduction


This article demonstrates the use of ASP.NET along with JavaScript to create a simple application that will let the user view records from a table and select multiple records using Checkboxes and deleting them without posting back the form, using AJAX.

How To Do It . . .

To Use This Project, first of all unzip the source file. You will find a solution named CheckBoxes in a CheckBoxes directory. Just copy the whole CheckBoxes directory to the Inetpub\wwwroot directory of your root drive. Open IIS Manager [ Go to Start Menu > Run > inetmgr <Press Enter> ]. Then make the CheckBoxes directory a virtual directory [ I think all of you know how to do it ].

Now that the CheckBoxes directory is a Virtual directory, open the solution in the .NET IDE. Just check out the web.config file; you will found the Connection String there. Go and make some changes if you want, the default Database server is localhost so most of you won't be needing to make any changes in the connection string.

Then comes the table -- Customers. Just make a copy of that table and call it CUST. A Copy can be made using the following query --

SELECT * INTO Cust FROM CUSTOMERS

This will create a Cust table which is used in the example.

Now just open your browser and type in the url for the page:

http://localhost/CheckBoxes/

The whole code is easy to understand. Most use is made of JavaScript & XMLHttp to pass the data from the server to the client and vice versa.

That's All.

--

Kirtan Gor.

License

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

About the Author

Kirtan Gor

Technical Lead

India India

Member

He is a Technology Analyst working in a software firm in India. He works mainly on .NET technologies like SharePoint, ASP.NET, C#, etc.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 PinmemberSumanMangal21:08 21 Oct '09  
GeneralCool PinmemberQuartz...7:18 6 Sep '06  
GeneralRe: Cool PinmemberKirtan Gor18:25 6 Sep '06  
GeneralRe: Cool PinmemberQuartz...8:31 7 Sep '06  
GeneralRe: Cool PinmemberKirtan Gor18:07 7 Sep '06  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 13 Jun 2006
Article Copyright 2006 by Kirtan Gor
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid