asp:Repeater with a struct array data source RRS feed

  • Question

  • I have an asp:Repeater that I'm trying to bind to an array of structs. On the DataBind call it complains that I don't have a property called "Id" on my struct. Technically that is true - I have a public field. 

    How can I get this to work if structs don't have properties?

    Posted to this forum because there is no forum for ASP.NET development.
    • Edited by RussNem Thursday, August 13, 2009 8:53 PM typo
    • Moved by nobugz Thursday, August 13, 2009 8:58 PM forums.asp.net (From:.NET Base Class Library)
    Thursday, August 13, 2009 8:16 PM