G
Guest
I have a page with a business object that is populated by parsing input from
the page (specifically a scanned drivers license). I was hoping that I could
display the results using a details view or bound to labels in a table.
In .Net 1.1, I would have just bound the individual text fields to the
object. This does not apear to be an option in .Net 2.0. The
ObjectDatasource seemed to be what I wanted (after all, I am binding to an
object), but it requires a collection. Is there any way to bind to a a
single object?
I also tried to go into the html source and set the text properties to the
object values using the <%= %> syntax and the Eval syntax. These also did
not work, although I can insert <%= %>this directly into the html and it
displays the values. I may be setting other values at the server for these,
so it would be more advantageous for me to use a server control if possible.
I seems silly that something so simple to do in .Net 1.1 would be such a
pain in .Net 2.0, so I must be missing something. Does anyone know how to do
it?
the page (specifically a scanned drivers license). I was hoping that I could
display the results using a details view or bound to labels in a table.
In .Net 1.1, I would have just bound the individual text fields to the
object. This does not apear to be an option in .Net 2.0. The
ObjectDatasource seemed to be what I wanted (after all, I am binding to an
object), but it requires a collection. Is there any way to bind to a a
single object?
I also tried to go into the html source and set the text properties to the
object values using the <%= %> syntax and the Eval syntax. These also did
not work, although I can insert <%= %>this directly into the html and it
displays the values. I may be setting other values at the server for these,
so it would be more advantageous for me to use a server control if possible.
I seems silly that something so simple to do in .Net 1.1 would be such a
pain in .Net 2.0, so I must be missing something. Does anyone know how to do
it?