PDA

View Full Version : Spring.Web: binding arrays of data to an ASP page/class


Alistair
04-27-2005, 04:58 AM
I have read the Spring web documentation on the wiki and read through the code but can't determine whether currently there is any support for binding arrays of data to repeating controls?

I'm looking to replace the repeater/dataset combination with Spring and PONOs but don't know if this is possible or planned for the future.

Thanks
Alistair

Aleks Seovic
04-27-2005, 05:45 AM
Hi Alistair,

Our goal for Spring.Web was not to reinvent ASP.Net, but to add missing functionality. You should use standard .Net data binding mechanism to bind your repeating control to array (or any other object that implements IList, for that matter).

Spring data binding is bidirectional by default and should be used to bind form entry controls to data model. While it could (theoretically) be used to bind repeating controls to their data source, this is not what it was intended for.

- Aleks