Input from textbox!!

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

Join Date: Jul 2007
Posts: 10
Reputation: sainiricha is an unknown quantity at this point 
Solved Threads: 0
sainiricha's Avatar
sainiricha sainiricha is offline Offline
Newbie Poster

Input from textbox!!

 
0
  #1
Mar 14th, 2008
Input from text box as text(not number) and by button click need all values from the sql table to be viewed in the datagridview.
eg:deptname as input in textbox, and by button click take all values from table matching this deptname and get output in datagridview.
Can anyone help me out in this matching of textbox value as text of mine.As its matching integer type but text type is not getting matched.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Input from textbox!!

 
2
  #2
Mar 14th, 2008
  1. SELECT * FROM TableName WHERE ColumnName like '%" & textBox1.Text & "%'
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 10
Reputation: sainiricha is an unknown quantity at this point 
Solved Threads: 0
sainiricha's Avatar
sainiricha sainiricha is offline Offline
Newbie Poster

Re: Input from textbox!!

 
0
  #3
Mar 14th, 2008
Hello i've tried this,but still i'm not getting the output...:-(...
Can u suggest some other solutions??
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Input from textbox!!

 
0
  #4
Mar 14th, 2008
show your code and what the effort of that.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 10
Reputation: sainiricha is an unknown quantity at this point 
Solved Threads: 0
sainiricha's Avatar
sainiricha sainiricha is offline Offline
Newbie Poster

Re: Input from textbox!!

 
0
  #5
Mar 14th, 2008
Thankuu its working now...i was leaving space between ' &"..
thankuu..i was trying to solve this from past many days..but couldn't solve...now i could with ur help...:-)
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Input from textbox!!

 
0
  #6
Mar 14th, 2008
you're welcome sainiricha.
don't forget to mark this thread solved.
happy coding friend
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
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