Databinding and fields
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I have somthing of a problem with databinding objects from a wsdl.exe generated SOAP proxy. The generated proxy objects expose their data as public fields, rather than properties. DataTextMember will only bind to a property. The only ways round this that I can think of at the moment are:
- Wrapper classes for object in the SOAP proxy.
Nope, don't like that idea one bit, Dumb hack. - Use reflection in a generic wrapper class that converts the contained objects fields into properties Seems overkill, see below.
- Wait for an answer here, as I suspect I am missing something obvious to someone else
Ryan.
- Wrapper classes for object in the SOAP proxy.