Starting To Play Around With ASP (Pre-MVC Stuff)

Sorry for the lack of updates here. I’ve been plugging away with the ASP & MVC work with some courses I’ve been taking. Stay tuned because I’ll be posting the projects I’ve been working on in progression.

This one is the beginning of the ASP stuff I’ve been playing with. This is an older project before I started messing with ASP, MVC, and the Entity framework. Again, those posts will come later. I’ve got the projects done. I just need to post them. So this will eventually lead into more ASP/MVC stuff. I’ve taking a liking to the way things work.. 🙂

There really isn’t much code to post other than the screenshots and a few html pages. Not much meat to this one. So if you want to take look at the source head on over to the downloads page, pull it down, and take a look.

Cheers
Tails

MainPage

Site.master file

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Site.master.cs" Inherits="SiteMaster" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
    <title></title>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    <asp:ContentPlaceHolder ID="HeadContent" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form runat="server">
    <div class="page">
        <div class="header">
            <div class="title">
                <h1>
                    My ASP.NET Application
                </h1>
            </div>
            <div class="loginDisplay">
                <asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
                    <AnonymousTemplate>
                        [ <a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server">Log In</a> ]
                    </AnonymousTemplate>
                    <LoggedInTemplate>
                        Welcome <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" /></span>!
                        [ <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/> ]
                    </LoggedInTemplate>
                </asp:LoginView>
            </div>
            <div class="clear hideSkiplink">
                <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                    <Items>
                        <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/>
                        <asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/>
                        <asp:MenuItem NavigateUrl="~/Public/Default.aspx" Text="Public"/>
                        <asp:MenuItem NavigateUrl="~/Private/Default.aspx" Text="Private"/>
                        <asp:MenuItem NavigateUrl="~/Family/Default.aspx" Text="Family"/>
                        <asp:MenuItem NavigateUrl="~/SiteMap.aspx" Text="Site Map"/>
                    </Items>
                </asp:Menu>
            </div>
            <asp:SiteMapPath ID="SiteMapPath1" runat="server" Visible="False">
            </asp:SiteMapPath>
        </div>
        <div class="main">
            <asp:ContentPlaceHolder ID="MainContent" runat="server"/>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="footer">
        <asp:Panel ID="Panel1" runat="server">
            <asp:Label ID="Label1" runat="server" Text="This Is A Footer Label From Site.Master"></asp:Label>
            <asp:ContentPlaceHolder ID="FootContent" runat="server"></asp:ContentPlaceHolder>
        </asp:Panel>
    </div>
    </form>
</body>
</html>

Web.sitemap File

<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
  <siteMapNode title="Home" description="Home" 
        url="~/Default.aspx">
  <siteMapNode title="Admin" description="Admin"
      url="~/Admin/Default.aspx">
  </siteMapNode>
  <siteMapNode title="Public" description="Public Information"
      url="~/Public/Default.aspx" >
  </siteMapNode>
  <siteMapNode title="Members" description="Members"
      url="~/Members/Default.aspx">
  </siteMapNode>
  <siteMapNode title="Private" description="Private Information"
      url="~/Private/Default.aspx">
  </siteMapNode>
  <siteMapNode title="Family" description="Information For Family"
      url="~/Family/Default.aspx">
    <siteMapNode title="Mother" description="Mother"
                 url="~/Family/Mother.aspx">
    </siteMapNode>
    <siteMapNode title="Father" description="Father"
                 url="~/Family/Father.aspx">
    </siteMapNode>
  </siteMapNode>
  <siteMapNode title="About" description="About us"
      url="~/About.aspx">
  </siteMapNode>
  <siteMapNode title="Site Map" description="Site Map"
      url="~/SiteMap.aspx">
  </siteMapNode>
  </siteMapNode>
</siteMap>
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s