System.Data.Comm.DbDataRecord Error

If you are using data from a database table to populate a DropDownList or ListBox, and you get this for each item in the control, to fix it, you MUST assign a datatextfield to the server control equal to the column you want showing in your control.

You can either do this in code, before binding, or in the server control itself.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>