DataBinding with Custom Objects

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve

    #1

    DataBinding with Custom Objects

    I have an object returned from a Web Service that I would
    like to Bind to a Repeater. However, at runtime I get an
    error saying the property doesn't exist. Since the
    wsdl.exe tool generated the stubbed object on the client
    side I don't want to edit it. I thought as long as the
    field is public, it should act like a property. Can
    someone help?

    Code Sample
    <%# DataBinder.Eval (Container.Data Item, "ApprovalLevel" ) %>
    ApprovalLevel is a public field on my object.

    Thanks
    Steve
Working...