Retrieve fields using column name

Jeezers

New Member
I am trying to retrieve records from a datareader, using a column name, as in the old ASP, rsUsers("FirstName"). This is not very easy in ASP.NET using C#. There you will have to know the type of the column, and specify the number, ie MyDatareader.GetInt(1). BYou can read the value of a column from a datareader using syntax like:<BR><BR>datareaderobject["columnName"]
 
Back
Top