Click here to Skip to main content
13,087,797 members (79,942 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi Sir/Madam,
I need help in ADO.NET based project. My query is as if I have two form in and first contains a text box and a command button in text box one need to enter ID and has to get recrod on the basis of that ID in second page in grid view.

For example :- 1. A table with cus name in sql which contails field ID,Name,Adress,File(.xls,pdf or .doc).
2. First Page in ADO.NET contails one texbox and one command button.
3. Automatically fetch record from database on the basis of ID which was filled in first page text box in grid view.

Thanks and Regards
Ravindra Bisht
Posted 20-Aug-12 17:03pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Your project specific requirements cannot be solved here on Q&A section as it involves a lot of code. But I will give you link to a small article which contains all the usual ADO.NET functionality. Please refer to the following article showing how to perform basic CRUD operations and hopefully you should be able to implement your functionality without much problems.

A Beginner's Tutorial for Understanding ADO.NET[^]
rbisht2011 21-Aug-12 5:44am
Rahul, can u just give me better source code for this?
Rahul Rajat Singh 21-Aug-12 6:04am
It would be very difficult to provide project specific code. I seriously suggest you go through that article. ADO.NET is relatively simple and I am sure once you understand the basics, you will implement it very easily.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

I prefer to recommend another beginner's tutorial; this is another CodeProject article:
Using ADO.NET for beginners[^].


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 21 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100