urgent! How to display Search Result onto textbox/label

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 15
Reputation: potatochips is an unknown quantity at this point 
Solved Threads: 0
potatochips potatochips is offline Offline
Newbie Poster

urgent! How to display Search Result onto textbox/label

 
0
  #1
Jul 20th, 2007
hi.. i need help in displaying the search result onto the textboxes when i search for eg.a Disc. like when i type the description to search for a disc, the details of the discs which match the description will appear.
how do i go about doing that?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: urgent! How to display Search Result onto textbox/label

 
0
  #2
Jul 20th, 2007
just do textBox1.text = String whatever
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 15
Reputation: potatochips is an unknown quantity at this point 
Solved Threads: 0
potatochips potatochips is offline Offline
Newbie Poster

Re: urgent! How to display Search Result onto textbox/label

 
0
  #3
Jul 22nd, 2007
Thanks for your reply.. =)
hmm but what codes should i type after the String?

i did the codings below to test and see if the search is able to work but the search result won't display on the textbox. it displays "System.Data.OleDb.OleDbCommand" instead.
can somebody please help me?
  1. searchStr = New OleDbCommand("select * from Books where Title LIKE searchBookTextBox.Text%")
  2. TextBox1.Text = searchStr.ToString()
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: urgent! How to display Search Result onto textbox/label

 
0
  #4
Jul 22nd, 2007
>New OleDbCommand("select * from Books where Title LIKE searchBookTextBox.Text%")


Does that command return a string?

http://msdn2.microsoft.com/en-us/lib...nd(VS.71).aspx
Last edited by iamthwee; Jul 22nd, 2007 at 2:36 pm.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC