Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
13 Points
4 Posts
Dec 14, 2007 01:21 AM|LINK
JeremyS For databinding my server controls I'm using the CodeExpressionBuilder found at http://weblogs.asp.net/infinitiesloop/archive/2006/08/09/The-CodeExpressionBuilder.aspx. Instead of having to set the DataSource from codebehind I can do something like this: <cw:MyCustomControl runat="server" id="control" DataSource='<%$ code: ViewData["someCollection"] %>' />
For databinding my server controls I'm using the CodeExpressionBuilder found at http://weblogs.asp.net/infinitiesloop/archive/2006/08/09/The-CodeExpressionBuilder.aspx. Instead of having to set the DataSource from codebehind I can do something like this:
<cw:MyCustomControl runat="server" id="control" DataSource='<%$ code: ViewData["someCollection"] %>' />
Awesome! I'll try that too!
It would be great if this features also included in the next release of ASP.NET MVC.
airl4ngg4
Member
13 Points
4 Posts
Re: Helper Development - How's about Section Template?
Dec 14, 2007 01:21 AM|LINK
Awesome! I'll try that too!
It would be great if this features also included in the next release of ASP.NET MVC.
*Will you, Scott?* [Angel]