Display data in separate controls (SQL)

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

Join Date: Mar 2007
Posts: 5
Reputation: Windows3.11 is an unknown quantity at this point 
Solved Threads: 0
Windows3.11 Windows3.11 is offline Offline
Newbie Poster

Display data in separate controls (SQL)

 
0
  #1
Mar 26th, 2007
I'm creating a web application in VB.NET 2003 that connects to a SQL database... how do I display the data in separate controls (TextBoxes, labels, etc) instead of in a data grid?

Thanks,
Windows 3.11
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,154
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 530
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Display data in separate controls (SQL)

 
0
  #2
Mar 26th, 2007
In the server explorer sidebar you can select what control each field should be and then be able to drag them nto your form
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 812
Reputation: arjunsasidharan is on a distinguished road 
Solved Threads: 13
arjunsasidharan's Avatar
arjunsasidharan arjunsasidharan is offline Offline
Practically a Posting Shark

Re: Display data in separate controls (SQL)

 
0
  #3
Mar 27th, 2007
Originally Posted by Windows3.11 View Post
I'm creating a web application in VB.NET 2003 that connects to a SQL database... how do I display the data in separate controls (TextBoxes, labels, etc) instead of in a data grid?

Thanks,
Windows 3.11
You have to assign the parameters and use Stored Procedures (SQL) to retrieve data and display on the labels and textboxes
For example when you retrieve data from sql to your dataset by passing the parameters from your webapplication. You retrieve the data in a dataset.. Then all you have to do is bind the data into a textbox or lablel as you wish..

if its a dropdownlist box it goes like this

listbox.datasource = (datasetname)
listbox.databind()
There is just two ways to live your life.
One is as though nothing is a miracle.
The other is as if everything is.
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



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC