•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 361,875 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,339 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1405 | Replies: 1
![]() |
•
•
Join Date: Mar 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
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
Thanks,
Windows 3.11
•
•
Join Date: Jan 2006
Location: Its the internet... i am everywhere lol
Posts: 274
Reputation:
Rep Power: 3
Solved Threads: 10
my vb and my VS2003 are very rusty so there may be a better way than this.
You just get the record from the dataset/datatable and set the textbox.text or label.text = to the rows cell for the relevent data.
eg dim arow as datarow
textbox1.text = arow("firstname")
label1.text = arow("DOB")
etc and do the reverse to update the data.
You could always set the databinding on a text box and label and then put the textbox and labels datasource to the row and call databind on it too but i am rusty with VS2003 to know whether it is available in that or just 2005.
You just get the record from the dataset/datatable and set the textbox.text or label.text = to the rows cell for the relevent data.
eg dim arow as datarow
textbox1.text = arow("firstname")
label1.text = arow("DOB")
etc and do the reverse to update the data.
You could always set the databinding on a text box and label and then put the textbox and labels datasource to the row and call databind on it too but i am rusty with VS2003 to know whether it is available in that or just 2005.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
.net .net framework 3.0 access ajax asp breach broadband code combo crime custom daniweb data data protection data transfer database developer development dom drive dropdownlist feed forensics government hacker hardware hitachi internet linux microsoft module net news office reader reuse security skin software sql storage survey theme vista weather web wikipedia windows workflow xml xoap
- Bind data to JTable (Java)
- Display data in separate controls (SQL) (VB.NET)
- How can i retrieve data after i logod on..... (ASP.NET)
- ComboBox bind data problem (VB.NET)
- Unable to insert data into SQL Database (ASP)
- VB and MS-sql 2000 data navigation (Visual Basic 4 / 5 / 6)
- To display an icon in a datagrid (VB.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Missing assembly file
- Next Thread: Help!!!!open function cannot run in IE


Linear Mode