A
Aquila Deus
Hi all!
I'm wondering if I can code like this with .NET 2:
<asp:Repeater runat="server" DataSource="Articles" Item="article">
...
<asp:TextBox runat="server" Field="article.Subject"/>
<p>
<asp:TextBox runat="server" Multiline="true" Field="article.Text"/>
</p>
...
</asp:Repeater>
Articles is an IEnumerable of article class in Page, and "article" in
Repeater is just a variable assigned to current item when walking
through the datasource.
I'd like to have ASP.NET automatically bind the input to properties in
article automatically (with given converter if needed). I have read a
few about the ObjectDataSource etc but all of those *Views seem to be
designed for special purpose...
If it can't do so, is there any framework other than Spring.NET does
that? (otherwise I'll have to extend all those controls myself...)
I'm wondering if I can code like this with .NET 2:
<asp:Repeater runat="server" DataSource="Articles" Item="article">
...
<asp:TextBox runat="server" Field="article.Subject"/>
<p>
<asp:TextBox runat="server" Multiline="true" Field="article.Text"/>
</p>
...
</asp:Repeater>
Articles is an IEnumerable of article class in Page, and "article" in
Repeater is just a variable assigned to current item when walking
through the datasource.
I'd like to have ASP.NET automatically bind the input to properties in
article automatically (with given converter if needed). I have read a
few about the ObjectDataSource etc but all of those *Views seem to be
designed for special purpose...
If it can't do so, is there any framework other than Spring.NET does
that? (otherwise I'll have to extend all those controls myself...)
