How to display a field value from a DataReader?

  • Thread starter Thread starter Shapper
  • Start date Start date
S

Shapper

Hello,

I have a working DataReader on a web page. I used it on a DataGrid.
Something like:

id name city
1 John London
2 Mary New York

How can I display the [city] value from one of the records in my page?

Thank You,
Miguel
 
Hello,

I have a working DataReader on a web page. I used it on a DataGrid.
Something like:

id name city
1 John London
2 Mary New York

How can I display the [city] value from one of the records in my page?


As you loop through...

Write out Datareader("FieldName")
 
Back
Top