ASP 101 - Active Server Pages 101 - Web03
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash




ASP.NET version of "Database Delete"


A simple sample that shows how to delete a record from a database simply by clicking on it. There's nothing all that complex here. The little bit of housekeeping does use the ExecuteScalar method of the command object which I haven't used much in the past so you might want to take a look at that. Aside from that it's just some good old fashioned database code.

Please note that there are some steps being taken to keep this database reasonably small, yet not empty! So, if you see entries disappear, appear, or change, it is most likely due to the maintenance parts of the script. Please note that it is also likely that others may be viewing either this sample or one of the many others that utilize this table. This also will cause changes to the database resulting in records you may not be expecting!

Here's a zip file of the code (2.2 KB).

Play with the running version.


Back to the "Database Delete" sample


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers