473,480 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Need some help with asp.net and fill labels from a database.

Hi.

I have just began to use vb.net/ asp.net.
Now I am trying to undertand ado.net and use of it.

The datagrid it seems I got right but how do I "fill" e.g. a label.
Previous I dis label.caption= rs!something.

Now I have
Dim custNmAdapter As New OleDb.OleDbDataAdapter("SELECT Nm from myTable
where id=1")
Dim dsCustNm As DataSet = New DataSet()
custNmAdapter.Fill(dsCustNm, "Intelle_CustNm")
So if anyone please could show me how I can get data into my label I would
be fextreamly happy.
label.text=???

Thanks
Morten
Jul 21 '05 #1
2 2641
Hi,

You just have to access with the the rows in the dataset.
Have a look at the Dataset class
dsCustNm.Tables["Intelle_CustNm"].Rows[0].Columns
["columnName"]

-----Original Message-----
Hi.

I have just began to use vb.net/ asp.net.
Now I am trying to undertand ado.net and use of it.

The datagrid it seems I got right but how do I "fill" e.g. a label.Previous I dis label.caption= rs!something.

Now I have
Dim custNmAdapter As New OleDb.OleDbDataAdapter("SELECT Nm from myTablewhere id=1")
Dim dsCustNm As DataSet = New DataSet()
custNmAdapter.Fill(dsCustNm, "Intelle_CustNm")
So if anyone please could show me how I can get data into my label I wouldbe fextreamly happy.
label.text=???

Thanks
Morten
.

Jul 21 '05 #2
Thanks.

U got me on track again.

:) Morten

"Anuradha" <an****@hotmail.com> skrev i melding
news:0b****************************@phx.gbl...
Hi,

You just have to access with the the rows in the dataset.
Have a look at the Dataset class
dsCustNm.Tables["Intelle_CustNm"].Rows[0].Columns
["columnName"]

-----Original Message-----
Hi.

I have just began to use vb.net/ asp.net.
Now I am trying to undertand ado.net and use of it.

The datagrid it seems I got right but how do I "fill"

e.g. a label.
Previous I dis label.caption= rs!something.

Now I have
Dim custNmAdapter As New OleDb.OleDbDataAdapter("SELECT

Nm from myTable
where id=1")
Dim dsCustNm As DataSet = New DataSet()
custNmAdapter.Fill(dsCustNm, "Intelle_CustNm")
So if anyone please could show me how I can get data into

my label I would
be fextreamly happy.
label.text=???

Thanks
Morten
.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3268
by: Shyguy | last post by:
I have an option group with about 30 options. I would like to have the Option Labels get their text from a table. Is this possible, and if so how? Also, is it possible to embad a font into a...
1
3275
by: news.xnet.hr | last post by:
Hi All! I'm doing a little app for browsing images(like ACDSee). All thumbnails are actually panels with imageboxes and labels for image properties (like ACDSee). What I'm doing is first fill...
3
1188
by: bardo | last post by:
Hello all, I want to make an application withs centers around 1 windowform. This form I want to give the same appearance as the Outlook. I have a listbox on the left-handside then a splitter....
3
1288
by: Hamza Al Ali | last post by:
Hi, I am new at ASP.NET, and I need some help from you. I am started with a first example got it from MSDN related to the Studio.NET, I am going through the example step by step. The...
0
994
by: Andreas Klemt | last post by:
Hello, I have an ASPX Page with 8 Web User Controls on it. Some are Visible = False and some are Visible = True Now I wrote in each Web User Control code: Sub Page_Load() If Me.Visible...
3
1514
by: Mike | last post by:
I have a web page that displays contact people in a drop down. the users selects a person then clicks the go button. The datagrid should pop with all the information on the select contact person,...
2
304
by: Morten | last post by:
Hi. I have just began to use vb.net/ asp.net. Now I am trying to undertand ado.net and use of it. The datagrid it seems I got right but how do I "fill" e.g. a label. Previous I dis...
3
1959
by: bb nicole | last post by:
I have did the company login and job post which means that company can post the job after they login in my webpage.. I had set company_ID(tablename:company) is foreign key of table job. But when i...
0
1211
by: darrel | last post by:
Hi there, good day! i need some help in displaying my records,,, my assignment is i have to display a database records in a labels. Its like this in my database i have a table called "SUBJECTS"...
0
7046
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7048
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6956
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5342
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4783
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4485
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
183
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.