Click here to Skip to main content
15,895,777 members
Articles / Web Development / HTML

ASP.NET MVC - Part 1

Rate me:
Please Sign up or sign in to vote.
4.40/5 (34 votes)
7 Apr 2008CDDL13 min read 228.7K   9K   121  
A look at the ASP.NET MVC application in ASP.NET Extensions 3.5.
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true"
    CodeBehind="Artists.aspx.cs" Inherits="Mvc.Views.Music.Artists" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <asp:Panel ID="Alphabet" runat="server">
    </asp:Panel>
    <asp:ListView ID="ArtistList" runat="server">
        <LayoutTemplate>
            <ul>
                <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
            </ul>
        </LayoutTemplate>
        <ItemTemplate>
            <li>
                <%# Html.RouteLink((string)Eval("name"), new RouteValueDictionary(new { action = "Albums", id = Eval("id") }))%>
            </li>
        </ItemTemplate>
        <EmptyDataTemplate>
            No artist currently available...
        </EmptyDataTemplate>
    </asp:ListView>
</asp:Content>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)



Comments and Discussions