Decoding ASPNET "Whidbey" Internet sample site

by lichen 2/15/2004 11:33:00 AM

1. web.config:

 Use Forms authentication. Site counter is enabled through the following element:

        <siteCounters enabled="true"> 

            <pageCounters enabled="true" rowsPerDay="1" trackApplicationName="true" trackPageUrl="true" counterGroup="PageCounters" counterName="">
                <pagesToCount>
                    <add path="*"/>
                </pagesToCount>
            </pageCounters>

        </siteCounters>    

2. sitetemplate.master:

Style is embedded under the <head> tag that runs at server. (There are two <head> elements in the file. Why?) Web Admin site uses a separate style sheet. It has to use Request.ApplicationPath to link to the style sheet.

There is a also an invisible sitemapdatasource control under the head.

        <asp:sitemapdatasource id="SiteMapSource" runat="server"></asp:sitemapdatasource>

There is a loginview control which is a templated control. There is a loggedintemplate and a anonymoustemplate. We can even has one template per row under the rolegroups element. Inside the template, some other controls, such as loginstatus and loginname, are used.

There is a sitemappath control that could automatically bind to the sitemapdatasource control.

There is a treeview that is explicitly bound to the sitemapdatasource control.

3. Photo Album: The photoalbums.aspx page uses datalist control bind to a accessdatasource control.

The phtoalbum.aspx page use two accessdatasource controls, one bind to a detailview control and one bind to a datalist control.

The pictureDetails.aspx page use a detailview control. The control contains a single itemtemplate.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net | ASP.NET

Related posts

Comments are closed

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

Pages

    Recent comments

    Authors

    Tags

      Disclaimer

      The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

      © Copyright 2012

      Sign in