locked
System.IndexOutOfRangeException when reading from database RRS feed

  • Question

  • User1580244458 posted
    What could be causing this error? Will post code if neccessary System.IndexOutOfRangeException: FirstName at System.Data.Common.FieldNameLookup.GetOrdinal(String fieldName) at System.Data.OleDb.OleDbDataReader.GetOrdinal(String name) at System.Data.OleDb.OleDbDataReader.get_Item(String name) at ASP.events_aspx.Page_Load() in c:\inetpub\wwwroot\milanos\Events.aspx:line 49
    Tuesday, January 27, 2004 11:39 AM

All replies

  • User-1174460629 posted
    Looks to me like the field "FirstName" does not exist in your result set but you are trying to reference it anyway.
    Tuesday, January 27, 2004 11:43 AM
  • User1580244458 posted
    thanks for that, I acutally solved the problem, but couldn't reply back str8 away because the post hadn't been approve by mods, it was a case of what you said. I just had to change firstname to the name of the coloumn i was trying to access.
    Wednesday, January 28, 2004 6:45 AM