The codebehind is acting like it doesn't see the aspx page.
This is the code behind:
protected void Page_Load(object sender, EventArgs e)
{
DashResultsViewModel dashResultsList = new DashResultsViewModel();
ListView1.DataSource = dashResultsList.Display();
ListView1.DataBind();
}
This is the aspx page where it creates ListView1
<asp:ListView ID="ListView1" runat="server">
<ItemTemplate>
<asp:Label ID="Label1" Text="<%#Container.DataItem %>" runat="server" />
</ItemTemplate>
</asp:ListView>
The error: "The name 'ListView1' does not exist in the current context"
Question: How do I get it to work?