<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-size="10pt" text-align="justify" line-height="normal" font-selection-strategy="character-by-character" language="en">
	<fo:layout-master-set>
		<fo:simple-page-master master-name="blank" page-width="7in" page-height="9in" margin-top="0.5in" margin-bottom="0.5in" margin-left="0.8in" margin-right="1.2in">
			<fo:region-body display-align="center" margin-bottom="0.5in" margin-top="0.5in" region-name="blank-body"/>
			<fo:region-before region-name="xsl-region-before-blank" extent="0.4in" display-align="before"/>
			<fo:region-after region-name="xsl-region-after-blank" extent="0.4in" display-align="after"/>
		</fo:simple-page-master>
		<fo:simple-page-master master-name="body-first" page-width="7in" page-height="9in" margin-top="0.5in" margin-bottom="0.5in" margin-left="1.2in" margin-right="0.8in">
			<fo:region-body margin-bottom="0.5in" margin-top="0.5in" column-count="1"/>
			<fo:region-before region-name="xsl-region-before-first" extent="0.4in" display-align="before"/>
			<fo:region-after region-name="xsl-region-after-first" extent="0.4in" display-align="after"/>
		</fo:simple-page-master>
		<fo:simple-page-master master-name="body-odd" page-width="7in" page-height="9in" margin-top="0.5in" margin-bottom="0.5in" margin-left="1.2in" margin-right="0.8in">
			<fo:region-body margin-bottom="0.5in" margin-top="0.5in" column-count="1"/>
			<fo:region-before region-name="xsl-region-before-odd" extent="0.4in" display-align="before"/>
			<fo:region-after region-name="xsl-region-after-odd" extent="0.4in" display-align="after"/>
		</fo:simple-page-master>
		<fo:simple-page-master master-name="body-even" page-width="7in" page-height="9in" margin-top="0.5in" margin-bottom="0.5in" margin-right="1.2in" margin-left="0.8in">
			<fo:region-body margin-bottom="0.5in" margin-top="0.5in" column-count="1"/>
			<fo:region-before region-name="xsl-region-before-even" extent="0.4in" display-align="before"/>
			<fo:region-after region-name="xsl-region-after-even" extent="0.4in" display-align="after"/>
		</fo:simple-page-master>
		<fo:page-sequence-master master-name="body">
			<fo:repeatable-page-master-alternatives>
				<fo:conditional-page-master-reference master-reference="blank" blank-or-not-blank="blank"/>
				<fo:conditional-page-master-reference master-reference="body-first" page-position="first"/>
				<fo:conditional-page-master-reference master-reference="body-odd" odd-or-even="odd"/>
				<fo:conditional-page-master-reference master-reference="body-even" odd-or-even="even"/>
			</fo:repeatable-page-master-alternatives>
		</fo:page-sequence-master>
	</fo:layout-master-set>
	<fo:page-sequence id="chapter1" hyphenate="true" master-reference="body" language="en" format="1" initial-page-number="1">
		<fo:static-content flow-name="xsl-region-before-first">
			<fo:block margin-left="-0.35in" margin-right="-0.35in">
				<fo:table table-layout="fixed" width="100%">
					<fo:table-column column-number="1" column-width="100%"/>
					<fo:table-body>
						<fo:table-row height="14pt">
							<fo:table-cell relative-align="baseline" display-align="before" text-align="&#xA;									  right&#xA;									">
								<fo:block>
									<fo:block/>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</fo:table-body>
				</fo:table>
			</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="xsl-region-before-odd">
			<fo:block margin-left="-0.35in" margin-right="-0.35in">
				<fo:table table-layout="fixed" width="100%" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black">
					<fo:table-column column-number="1" column-width="100%"/>
					<fo:table-body>
						<fo:table-row height="14pt">
							<fo:table-cell relative-align="baseline" display-align="before" text-align="&#xA;									  right&#xA;									">
								<fo:block>
									<fo:block>
										<fo:retrieve-marker retrieve-class-name="section.head.marker" retrieve-position="first-including-carryover" retrieve-boundary="page-sequence"/>
									</fo:block>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</fo:table-body>
				</fo:table>
			</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="xsl-region-before-even">
			<fo:block margin-left="-0.35in" margin-right="-0.35in">
				<fo:table table-layout="fixed" width="100%" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black">
					<fo:table-column column-number="1" column-width="100%"/>
					<fo:table-body>
						<fo:table-row height="14pt">
							<fo:table-cell relative-align="baseline" display-align="before" text-align="&#xA;									  left&#xA;									">
								<fo:block>
									<fo:block>Chapter 1: Introduction to .NET and ASP.NET</fo:block>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</fo:table-body>
				</fo:table>
			</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="xsl-region-before-blank">
			<fo:block margin-left="-0.35in" margin-right="-0.35in">
				<fo:table table-layout="fixed" width="100%" border-bottom-width="0.5pt" border-bottom-style="solid" border-bottom-color="black">
					<fo:table-column column-number="1" column-width="100%"/>
					<fo:table-body>
						<fo:table-row height="14pt">
							<fo:table-cell relative-align="baseline" display-align="before" text-align="&#xA;									  right&#xA;									">
								<fo:block>
									<fo:block/>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</fo:table-body>
				</fo:table>
			</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="xsl-footnote-separator">
			<fo:block>
				<fo:leader color="black" leader-pattern="rule" leader-length="1in"/>
			</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="blank-body">
			<fo:block text-align="center"/>
		</fo:static-content>
		<fo:static-content flow-name="xsl-region-after-first">
			<fo:block margin-left="-0.35in" margin-right="-0.35in">
				<fo:table table-layout="fixed" width="100%" border-top-width="0.5pt" border-top-style="solid" border-top-color="black">
					<fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
					<fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
					<fo:table-body>
						<fo:table-row height="14pt">
							<fo:table-cell text-align="left" display-align="after" relative-align="baseline">
								<fo:block>
									<fo:block/>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell text-align="right" display-align="after" relative-align="baseline">
								<fo:block>
									<fo:block/>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</fo:table-body>
				</fo:table>
			</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="xsl-region-after-odd">
			<fo:block margin-left="-0.35in" margin-right="-0.35in">
				<fo:table table-layout="fixed" width="100%" border-top-width="0.5pt" border-top-style="solid" border-top-color="black">
					<fo:table-column column-number="1" column-width="proportional-column-width(3)"/>
					<fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
					<fo:table-body>
						<fo:table-row height="14pt">
							<fo:table-cell text-align="left" display-align="after" relative-align="baseline">
								<fo:block>
									<fo:block/>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell text-align="right" display-align="after" relative-align="baseline">
								<fo:block>
									<fo:block>
										<fo:page-number/>
									</fo:block>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</fo:table-body>
				</fo:table>
			</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="xsl-region-after-even">
			<fo:block margin-left="-0.35in" margin-right="-0.35in">
				<fo:table table-layout="fixed" width="100%" border-top-width="0.5pt" border-top-style="solid" border-top-color="black">
					<fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
					<fo:table-column column-number="2" column-width="proportional-column-width(3)"/>
					<fo:table-body>
						<fo:table-row height="14pt">
							<fo:table-cell text-align="left" display-align="after" relative-align="baseline">
								<fo:block>
									<fo:block>
										<fo:page-number/>
									</fo:block>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell text-align="right" display-align="after" relative-align="baseline">
								<fo:block>
									<fo:block/>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</fo:table-body>
				</fo:table>
			</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="xsl-region-after-blank">
			<fo:block margin-left="-0.35in" margin-right="-0.35in">
				<fo:table table-layout="fixed" width="100%" border-top-width="0.5pt" border-top-style="solid" border-top-color="black">
					<fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
					<fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
					<fo:table-body>
						<fo:table-row height="14pt">
							<fo:table-cell text-align="left" display-align="after" relative-align="baseline">
								<fo:block>
									<fo:block>
										<fo:page-number/>
									</fo:block>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell text-align="right" display-align="after" relative-align="baseline">
								<fo:block>
									<fo:block/>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</fo:table-body>
				</fo:table>
			</fo:block>
		</fo:static-content>
		<fo:flow flow-name="xsl-region-body">
			<fo:block>
				<fo:block margin-left="-0.35in">
					<fo:block border-after-style="solid" border-after-width="0.5pt" border-after-color="black" margin-right="-0.35in" margin-bottom="12pt" font-size="18pt" font-weight="bold" margin-top="1in" text-align="left" padding-after="12pt">
						<fo:block keep-with-next.within-column="always" hyphenate="false">
							<fo:table table-layout="fixed" width="5.7in&#xA;						">
								<fo:table-column column-number="1" column-width="2in"/>
								<fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
								<fo:table-body>
									<fo:table-row>
										<fo:table-cell display-align="after">
											<fo:block font-size="100pt" line-height-shift-adjustment="disregard-shifts">
												<fo:inline baseline-shift="-28pt">1</fo:inline>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell display-align="after">
											<fo:block>Introduction to .NET and ASP.NET</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
						</fo:block>
					</fo:block>
				</fo:block>
				<fo:block/>
			</fo:block>
			<fo:block xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions" id="yourfirst">
				<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em" line-height-shift-adjustment="disregard-shifts">To do this, we must add some script to our page. Like ASP before it,
ASP.NET gives you the choice of a number of different languages to use in
your scripts. The two most common languages are Visual Basic.NET (VB.NET)
and C# (pronounced “C sharp”). Let's take a look at examples using
both. Here's a version of the page in VB.NET:<fo:block space-before.minimum="0.5em" space-before.optimum="1em" space-before.maximum="2em" space-after.minimum="0.5em" space-after.optimum="1em" space-after.maximum="2em" keep-together="auto" id="d0e1252">
						<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em" line-height-shift-adjustment="disregard-shifts" font-weight="bold" font-size="12pt" hyphenate="false" space-after.minimum="0.4em" space-after.optimum="0.6em" space-after.maximum="0.8em" text-align="start" keep-with-next.within-column="always">Example 1.1. <fo:inline font-size="90%">FirstPage.aspx</fo:inline>
						</fo:block>
						<fo:block space-before.minimum="0.8em" space-before.optimum="1em" space-before.maximum="1.2em" space-after.minimum="0.8em" space-after.optimum="1em" space-after.maximum="1.2em" font-size="9pt" text-align="start" background-color="#E0E0E0" wrap-option="no-wrap" white-space-collapse="false" linefeed-treatment="preserve">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;My First ASP.NET Page&lt;/title&gt;
&lt;script runat="server" language="VB"&gt;
Sub Page_Load(s As Object, e As EventArgs)
  lblTime.Text = DateTime.Now.ToString()
End Sub
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
  &lt;p&gt;Hello there!&lt;/p&gt;
    &lt;p&gt;The time is now: &lt;asp:label runat="server" id="lblTime" /&gt;&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;</fo:block>
					</fo:block>
				</fo:block>
				<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em" line-height-shift-adjustment="disregard-shifts">Here's the same page written in C#:<fo:block space-before.minimum="0.5em" space-before.optimum="1em" space-before.maximum="2em" space-after.minimum="0.5em" space-after.optimum="1em" space-after.maximum="2em" keep-together="auto" id="d0e1260">
						<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em" line-height-shift-adjustment="disregard-shifts" font-weight="bold" font-size="12pt" hyphenate="false" space-after.minimum="0.4em" space-after.optimum="0.6em" space-after.maximum="0.8em" text-align="start" keep-with-next.within-column="always">Example 1.2. <fo:inline font-size="90%">FirstPage.aspx</fo:inline>
						</fo:block>
						<fo:block space-before.minimum="0.8em" space-before.optimum="1em" space-before.maximum="1.2em" space-after.minimum="0.8em" space-after.optimum="1em" space-after.maximum="1.2em" font-size="9pt" text-align="start" background-color="#E0E0E0" wrap-option="no-wrap" white-space-collapse="false" linefeed-treatment="preserve">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;My First ASP.NET Page&lt;/title&gt;
&lt;script runat="server" language="C#"&gt;
protected void Page_Load(Object s, EventArgs e)
{
  lblTime.Text = DateTime.Now.ToString();
}
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
  &lt;p&gt;Hello there!&lt;/p&gt;
    &lt;p&gt;The time is now: &lt;asp:label runat="server" id="lblTime" /&gt;&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;</fo:block>
					</fo:block>
				</fo:block>
			</fo:block>
		</fo:flow>
	</fo:page-sequence>
</fo:root>


