Can ne one of u plz tell me how to search a particular record in the database ?
my prob is that when i enter say an ID / Name it should search into database for the same and accordingly if the record is found my cmdbutton will be enabled and vice versa.....
am using vb.net 2005 and sql server 2000 . Kindly help me soon......am wating......its urgent
laghaterohan
0
Junior Poster
Recommended Answers
Jump to PostThis an example :
Dim conn As SqlConnection Dim cmdCustomer As New SqlCommand Dim daCustomer As New SqlDataAdapter Dim dsCustomer As New DataSet Dim dtCustomer As New DataTable conn = GetConnect() conn.Open() Try dsCustomer.Clear() dtCustomer.Clear() cmdCustomer = conn.CreateCommand cmdCustomer.CommandText = "SELECT * FROM Customer where IDCustomer = …
All 5 Replies
Jx_Man
987
Nearly a Senior Poster
Featured Poster
laghaterohan
0
Junior Poster
laghaterohan
0
Junior Poster
nileshsarode
0
Newbie Poster
laghaterohan
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.