Search record by using Datareader

Y

y_rkumar

can any one helpme to find out to search record depends on non-primary key by usiing Datareader in one table of dataset contains two tables.

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
K

katurner777

Your command is going to have to be parameterized.Secondly why not use a stored procedure on the database, that the reader uses. This way would save a lot of code. The only other way I wold use is by creating a Dataadapter, pull in everything you want, then use a databinding manager to search through the dataset. The last way is tricky. Personally I hate to use databinding of any type.

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top