Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here