Skip to content

Instantly share code, notes, and snippets.

@tathamoddie
Created April 13, 2010 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tathamoddie/364153 to your computer and use it in GitHub Desktop.
Save tathamoddie/364153 to your computer and use it in GitHub Desktop.
Example of nested presenters with Web Forms MVP
<%@ Register Src="~/Controls/AccountSummary.ascx" TagPrefix="app" TagName="account" %>
<asp:Repeater DataSource="<%# Model.Accounts %>" runat="server">
<ItemTemplate>
<app:Account Account="<%# DataValue<Account>() %> runat="server" />
</ItemTemplate>
</asp:Repeater>
<%@ Register Src="~/Controls/AccountsDashboard.ascx" TagPrefix="app" TagName="dashboard" %>
<app:Dashboard runat="server" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment