PeterBox Homepage
Welcome stranger, to Singapore, 9.5.08 22:11:43

.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 0.8b contact@peterbox.com ©2002 Peter Huber