OleDbDataReader

oscarsix5

New Member
I am trying to write a simple ADO.NET app, with C#. I am able to get the records I want, but when I want to print them out, I need to specify what column I want to print, using integer values, ie myDataReader.GetString(2), where the number 2 column is a string. WIth the old ASP you could just write nameOfRecordset("NameOfColumn"). This is possible in ASP.Net also, if you are using JScript, but very different in C#. Have anybody figured out how to do this?<BR><BR>thx<BR>
 
Back
Top