ASP.NET
  Home arrow ASP.NET arrow Page 3 - Building a Simple Storefront with LINQ
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Building a Simple Storefront with LINQ
By: Peyton McCullough
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2008-04-29

    Table of Contents:
  • Building a Simple Storefront with LINQ
  • ProductCategory Table
  • Creating the Master Page
  • Displaying Product Pictures

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building a Simple Storefront with LINQ - Creating the Master Page


    (Page 3 of 4 )

    First, we need to create a master page for our web site. Go ahead and add a new Master Page item to the project. The default name of MasterPage.master will do just fine. Next, add a stylesheet. Again, the default StyleSheet.css name will work. Replace the default master page content with this:


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


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
    transitional.dtd">


    <html xmlns="http://www.w3.org/1999/xhtml">

    <head runat="server">

     <title>Adventure Works Cycles</title>

     <link href="StyleSheet.css" rel="stylesheet" type="text/css" />

    </head>

    <body>

     <form id="form1" runat="server">

     <div id="header">

     <h1><a id="titleLink" href="Default.aspx">Adventure Works Cycles</a></h1>

     <em>Quality Cycles Since 1903</em>

     </div>

     <div id="main">

     <asp:ContentPlaceHolder ID="content" runat="server">

     </asp:ContentPlaceHolder>

     </div>

     </form>

    </body>

    </html>


    And put the following CSS in the stylesheet:


    body 

    {

     background-color: #F0FFFF; /* Azure */

     color: Black;

     margin: 0px;

     text-align: center;

     width: 100%;

    }

    #header

    {

     background-color: #87CEEB; /* SkyBlue */

     border-bottom: solid 5px Orange;

     margin: 0px;

    }

    h1

    {

     margin: 0px;

    }

    #titleLink

    {

     color: inherit;

     text-decoration: none;

    }

    #main

    {

     margin-left: auto;

     margin-right: auto;

     width: 70%;

    }


    We've just created a very basic layout and given it a little style-enough for our purposes.

    More ASP.NET Articles
    More By Peyton McCullough


       · Thanks a lot for the article. I was looking for similar example. Waiting for the...
       · Thanks for the comment, and the next article is now posted.Anyway, for everyone...
       · Not sure if I'm missing something obvious. I can't seem t find the link for the part...
       · Sorry, it accidentally got put in the .NET section rather than the ASP.NET section....
     

    ASP.NET ARTICLES

    - Adding Content to a Static ASP.NET Website
    - Building a Static ASP.NET Website in a Basic...
    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming
    - Introduction to the ADO.NET Entity Framework...
    - Completing an In-Text Advertising System und...
    - Programming an In-Text Advertising System un...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek