J
James R. Davis
I am an absolute beginner and finding myself confused at every step that I
take in the learning process. It will get better.
Anyway, I have a SqlDataSource control on a form and at page load time I
want to display the contents of a field from the record set using a label
control.
I cannot for th elife of me figure out how to reference that field.
The datasource select command simply reads the count(*) of records in the
table via:
SELECT Count(*) As RcdCnt
What I want to do is simply assign that value to Label1.Text but lack of
familiarity with ASP.NET has stopped me cold. I expected to be able to say
something like:
Label1.Text = SqlDataSource1("RcdCnt")
Nope.
I know that there are all levels of knowledge and experience on this news
feed and sincerly hope that a rank beginner's question like this is welcome.
take in the learning process. It will get better.
Anyway, I have a SqlDataSource control on a form and at page load time I
want to display the contents of a field from the record set using a label
control.
I cannot for th elife of me figure out how to reference that field.
The datasource select command simply reads the count(*) of records in the
table via:
SELECT Count(*) As RcdCnt
What I want to do is simply assign that value to Label1.Text but lack of
familiarity with ASP.NET has stopped me cold. I expected to be able to say
something like:
Label1.Text = SqlDataSource1("RcdCnt")
Nope.
I know that there are all levels of knowledge and experience on this news
feed and sincerly hope that a rank beginner's question like this is welcome.