PeterBox Homepage
Welcome stranger, to Singapore, 7.2.12 23:43:04

.NET Development Handbook

.NET Development Handbook .NET Development Handbook .NET Development Handbook .NET Development Handbook
.NET Development Handbook

11 Appendix

11.1Sample Files
11.1.1Web Forms HTML Code
11.1.2Web Forms Code Behind
11.1.3CSS

11.1 Sample Files

11.1.1 Web Forms HTML Code

• No file headers or comments, because they are sent to the client

• Apply proper indentation

 

<%@ Page language="c#" Codebehind="SampleForm.aspx.cs" AutoEventWireup="false" Inherits="PeterBox.SampleForm" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html>

    <head>

        <title>Sample Form</title>

        <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">

        <meta name="CODE_LANGUAGE" Content="C#">

        <meta name=vs_defaultClientScript content="JavaScript">

        <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">

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

    </head>

    <body MS_POSITIONING="FlowLayout">

        <form id="SampleForm" method="post" runat="server">

            <p><asp:TextBox id="SampleTextBox" runat="server"></asp:TextBox></p>

            <p><input type="submit" value="Submit"></p>

        </form>

    </body>

</html>

 

11.1.2 Web Forms Code Behind

See formatting rules ???

11.1.3 CSS

 

/*******************************************************************

* CSS Style Sheet for peterbox.com

*

* Contains styles for fonts, colors, etc. for elements used on more

* than one page.

*

* (co) Peter Huber, Singapore, 2002

*******************************************************************/

 

Chapters Overview

1Introduction
2Overview Development Process
3General Guidelines
4.NET Framework
5Windows Client
6ASP.NET
7HTML
8Cascading Style Sheets
9ADO.NET
10SQL Server
11Appendix
  Version 1.1 contact@peterbox.com ©2011 Peter Huber, Singapore