Important alert: (current site time 7/16/2013 9:57:41 AM EDT)
 

winzip icon

ADO.NET Tutorial

Email
Submitted on: 2/28/2004 8:46:59 PM
By: Arvin Meralpis  
Level: Beginner
User Rating: By 39 Users
Compatibility: VB.NET
Views: 29563
author picture
(About the author)
 
     Learn ADO.NET basics in shortest time possible. Contains 2 tutorials: Bound manually by code and bound by build-in Databinding. Shows you how to connect to an Access database, populate the controls with data, add new record, edit existing record, delete record, and save to the database. Well commented. Ideal to VB.NET beginners as well.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 4 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

3/7/2004 12:39:50 PMWong Yat Seng

i learnt something =)
(If this comment was disrespectful, please report it.)

 
3/8/2004 10:29:15 PMArvin Meralpis

Finally a voter.
Thanx Wong Yat Seng.
(If this comment was disrespectful, please report it.)

 
3/9/2004 12:21:15 PM

Thanks, it is what i was looking for, really useful for me.
(If this comment was disrespectful, please report it.)

 
4/23/2004 4:37:20 PM

Great code, just what I was looking for. Easy code and it does what I want.

I only have one question. What is the correct way to disconnect from the database and open a new connection??
(If this comment was disrespectful, please report it.)

 
5/11/2004 3:13:09 AMSamerTheHammer

Good Code. I gave it 5 Stars.
(If this comment was disrespectful, please report it.)

 
5/11/2004 9:08:58 AM

good job, i hope to see more information like this in the future.
(If this comment was disrespectful, please report it.)

 
5/20/2004 5:00:59 AMArvin Meralpis

thanks for all your votes.
As for the questions, I'll look for the best answer, i'll reply soon
(If this comment was disrespectful, please report it.)

 
7/27/2004 5:14:49 PM

Very Good tutorial!!!
And very clean to read and learn.
Thanks Arvin
Now, i can try to connect your App by SQL server through SQLClient.

(If this comment was disrespectful, please report it.)

 
8/19/2004 5:17:10 AMNitin Bagga

very helpful...thanks
5 globes from me!
(If this comment was disrespectful, please report it.)

 
9/2/2004 11:03:13 PMBill2k

Thanks! Your code is clean and easy to read. It was exactly what I needed to learn ADO.NET.
5 globes!
(If this comment was disrespectful, please report it.)

 
10/15/2004 11:27:07 PMvivraji

Keep up the good work
(If this comment was disrespectful, please report it.)

 
11/18/2004 3:10:27 AM

Thanks Arvin. This is a good sample program for beginners like me. Keep up the good work.
(If this comment was disrespectful, please report it.)

 
11/19/2004 4:12:11 AM

Thanks ! This is very helpful for beginner like me.^_^
(If this comment was disrespectful, please report it.)

 
2/7/2005 7:09:39 PM

its very helpfull thanks ! i've got only question, i'll tried the "bound by build-in Databinding" mode but it seems that i cant Add a new row. the other version " Bound manually by code " works perfect to me ! if u have an idea what did i do wrong please let me know ... thank you !!
(If this comment was disrespectful, please report it.)

 
2/7/2005 8:09:36 PMArvin Meralpis

Yeah, there was a bug on the 2nd form that prevents you from correctly adding a new record. I'm sorry for that but I'm sure you could easily fix that. In the mean time, why dont you just use the first method ("bound by code"). It's more customizable than the 2nd one.

(If this comment was disrespectful, please report it.)

 
4/13/2005 6:14:43 AMDerek Schwartz

Nice -- just what I was looking for.
(If this comment was disrespectful, please report it.)

 
8/16/2005 3:52:30 AMjhun monses

Great work! It helps me a lot coz i'm new with ado.net, hope to see more from u. I'll give you 5 globes!
(If this comment was disrespectful, please report it.)

 
12/20/2005 3:09:42 AMChris

I'm researching on ADO.NET code for Access like yours. I have a 3 table form in Access that I want to modify into a back-end with ADO.NET as the front end. I have completed some of this, but I need help. Can you Arving help me? Your code looks clean and I've spent hours looking for extra snippets of code with no help. my msn is Collegescholar@hotmail.com and aim is LastradaChris

Please and great code.
(If this comment was disrespectful, please report it.)

 
2/7/2007 12:19:04 AMbt

Thank you for posting this code
:-)
(If this comment was disrespectful, please report it.)

 
7/19/2007 8:21:12 AMAnil Kumar

Code is good
I wanted to get an application on mdi and I got in it.
I am also needing a good tutorial on viewstate that is used in asp.net.
(If this comment was disrespectful, please report it.)

 
12/24/2009 8:18:41 AMCoite Moss

Really great! Thank you for sharing this. Really cannot express my appreciation for your help! Thank You!
(If this comment was disrespectful, please report it.)

 
1/8/2010 1:33:37 AMArvin Meralpis

Hi Coite Moss,
Thanx for the feedback. It's been a while since someone posted a comment. Even longer is the time I posted this project.
(If this comment was disrespectful, please report it.)

 
2/25/2011 11:35:19 PMArvin Meralpis

Thanx your feedback.
Please continue to post feedbacks and questions because I'm still keeping observing this project of mine.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.