I moved to: http://blog.etavakoli.com
See you there :)
Writing About .NET Programming and other stuff
<%@ Page language="C#" MasterPageFile="~/Test.master"
Mozilla:MasterPageFile="~/TestMozilla.master"
Opera:MasterPageFile="~/TestOpera.master" %>
....

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <title>Grapes</title> <link rel="stylesheet" type="text/css" href="grapes.css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="author" content="Your name here" /> <meta name="Copyright" content="Copyright (c) Your copyright here 2005" /> </head> <body> <div id="container"> <div id="hdr"> <h1>grapes</h1> <p id="tagline">fruit, wine & web design</p> </div> <div id="lftcol"> <ul id="nav"> <li><a href="" id="current">Introduction</a></li> <li><a href="">Our Wines</a></li> <li><a href="">Important Grapes</a></li> <li><a href="">Contact Us</a></li> <li><a href="">Links</a></li> </ul> <div id="quote"> <p><em>A great source for information...</em></p> </div> <h3>More stuff</h3> <ul> <li><a href="http://validator.w3.org/check?uri=referer">Validate XHTML</a></li> <li><a href="http://jigsaw.w3.org/css-validator/check/referer">Validate CSS</a></li> <li><a href="http://www.davereederdesign.com/">Authors Website</a></li> <li><a href="http://www.oswd.org/">OSWD</a></li> </ul> </div> <div id="rgtcol"> <h2>Introduction</h2> <p>Hello and welcome to my latest template called "Grapes". <br /> "Grapes" is an Open Source web template which means it can be used without the need to ask permission and you have full rights to use and adapt its images. For more of my work, please see my website which can be found <a href="http://www.davereederdesign.com/">here.</a> </p> <p> I wanted to create a fairly simple yet attractive template which can be used for food or wine related websites, although it can easily be adapted for other uses too. </p> <h2>But is it <em>easy</em> to Use?</h2> <p>"Grapes" should be quite easy to use as I have added plenty of comments and tried to make the <acronym title="Cascading Style Sheet">CSS</acronym> as neat and organised as possible. </p> <p>There are also plenty of styles for other tags, including:</p> <p><code>Text using the code tag, this is ideal for showing code on a page.</code></p> <p><acronym title="acronym text">acronym text</acronym></p> <p><strong>strong or bold text</strong></p> <p><em>em or italic text</em></p> <p>This is a paragraph of normal text that contains <span>span</span> tags with a class set to <span>special</span>. This means all the <span>big words</span> in this paragraph are words that are placed between opening and closing <span>span</span> tags. These span tags can be used to add meaning to a block of text or to <span>shout out</span> when needed.</p> </div> <div id="bttmbar">Copyright © Your Copyright Info</div> </div> </body> </html>
<%@ Master Language="C#" MasterPageFile="~/MainMasterPage.master" AutoEventWireup="true" CodeFile="HeaderMasterPage.master.cs" Inherits="MasterPage1" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div id="hdr"> <h1> grapes</h1> <p id="tagline"> fruit, wine & web design</p> </div> <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server"> </asp:ContentPlaceHolder> </asp:Content>
<%@ Master Language="C#" MasterPageFile="~/HeaderMasterPage.master" AutoEventWireup="true" CodeFile="MenuMasterPage.master.cs" Inherits="MasterPage2" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> <div id="lftcol"> <ul id="nav"> <li><a href="" id="current">Introduction</a></li> <li><a href="">Our Wines</a></li> <li><a href="">Important Grapes</a></li> <li><a href="">Contact Us</a></li> <li><a href="">Links</a></li> </ul> <div id="quote"> <p><em>A great source for information...</em></p> </div> <h3>More stuff</h3> <ul> <li><a href="http://validator.w3.org/check?uri=referer">Validate XHTML</a></li> <li><a href="http://jigsaw.w3.org/css-validator/check/referer">Validate CSS</a></li> <li><a href="http://www.davereederdesign.com/">Authors Website</a></li> <li><a href="http://www.oswd.org/">OSWD</a></li> </ul> </div> <div id="rgtcol"> <asp:ContentPlaceHolder ID="ContentPlaceHolder3" runat="server"> </asp:ContentPlaceHolder> </div> </asp:Content>
<%@ Page Title="" Language="C#" MasterPageFile="~/MenuMasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default3" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server"> <h2>Introduction</h2> <p>Hello and welcome to my latest template called "Grapes". <br /> "Grapes" is an Open Source web template which means it can be used without the need to ask permission and you have full rights to use and adapt its images. For more of my work, please see my website which can be found <a href="http://www.davereederdesign.com/">here.</a> </p> <p> I wanted to create a fairly simple yet attractive template which can be used for food or wine related websites, although it can easily be adapted for other uses too. </p> <h2>But is it <em>easy</em> to Use?</h2> <p>"Grapes" should be quite easy to use as I have added plenty of comments and tried to make the <acronym title="Cascading Style Sheet">CSS</acronym> as neat and organised as possible. </p> <p>There are also plenty of styles for other tags, including:</p> <p><code>Text using the code tag, this is ideal for showing code on a page.</code></p> <p><acronym title="acronym text">acronym text</acronym></p> <p><strong>strong or bold text</strong></p> <p><em>em or italic text</em></p> <p>This is a paragraph of normal text that contains <span>span</span> tags with a class set to <span>special</span>. This means all the <span>big words</span> in this paragraph are words that are placed between opening and closing <span>span</span> tags. These span tags can be used to add meaning to a block of text or to <span>shout out</span> when needed.</p> </asp:Content>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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>Booking</title>
<style type="text/css">
div.fixed
{
width: 900px;
margin: 0px auto;
}
div.left
{
float: left;
width: 450px;
}
div.right
{
float: right;
width: 450px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div class="fixed">
<div class="left">
<p>Select your arrival date:</p>
<br />
<asp:TextBox ID="arriveTxt" runat="server"></asp:TextBox>
<asp:Calendar ID="arrive" runat="server"
onselectionchanged="arrive_SelectionChanged"></asp:Calendar>
</div>
<div class="right">
<p>Select your departure date:</p>
<br />
<asp:TextBox ID="departureTxt" runat="server"></asp:TextBox>
<asp:Calendar ID="departure" runat="server"
onselectionchanged="departure_SelectionChanged"></asp:Calendar>
</div>
<asp:CompareValidator ID="validator1" runat="server" ControlToValidate="departureTxt" ControlToCompare="arriveTxt" Type="Date" Operator="GreaterThan" Text="Please Select a Proper Date For Departure/Arrive"></asp:CompareValidator>
<br />
<asp:Button ID="Button1" runat="server" Text="Submit" onclick="Button1_Click" />
<asp:CustomValidator ID="validator2" runat="server" ControlToValidate="departureTxt" OnServerValidate="ServerDateValidation">You Must at Least Book for 2 Days</asp:CustomValidator>
<br />
</div>
</form>
</body>
</html>using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack) {
departure.SelectedDate = DateTime.Now.Date;
arrive.SelectedDate = DateTime.Now.Date;
departureTxt.Text = departure.SelectedDate.ToShortDateString();
arriveTxt.Text = arrive.SelectedDate.ToShortDateString();
}
}
protected void departure_SelectionChanged(object sender, EventArgs e)
{
departureTxt.Text = departure.SelectedDate.ToShortDateString();
}
protected void arrive_SelectionChanged(object sender, EventArgs e)
{
arriveTxt.Text = arrive.SelectedDate.ToShortDateString();
}
protected void Button1_Click(object sender, EventArgs e)
{
}
protected void ServerDateValidation(object source, ServerValidateEventArgs args)
{
System.TimeSpan datediff = departure.SelectedDate - arrive.SelectedDate;
if (datediff.Days > 2)
args.IsValid = true;
else
args.IsValid = false;
}
}<style type="text/css">
body {
margin: 0;
padding: 0;
}
#header {
background: #CCFF33;
height: 100px;
}
#leftcol {
background: #FF6633;
float: left;
width: 150px;
height: 500px;
}
#rightcol {
background: #FF6633;
float: left;
width: 150px;
height: 500px;
}
#main {
background: #fff;
float: left;
width: 600px;
height: 500px;
}
div.fixed
{
width: 900px;
margin: 0px auto;
}
}
</style><div class="fixed"> <div id="header">Header Section</div> <div id="leftcol">Left Section</div> <div id="main">Main Section</div> <div id="rightcol">Right Section</div> </div>
<div> </div>
<table> <tr> <td> </td> </tr> </table>
2010 is different - handing off files to my team is a lot more efficient. That frees up my time to be more creative.
With the prototyping tool, I can share my ideas and then watch them come to life.