<html>
<head>
<title>FormView Example Details Page</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<style type="text/css">
.desc {
font:bold 12pt arial,verdana,sans-serif; text-indent:25;
background:khaki; border:1px inset; padding:10; margin-bottom:10}
.features {
font-size:10pt; background:#efefef;
border:1px inset; padding-right:5; margin-bottom:10}
.specs {
font-size:10pt; background:beige;
border:1px inset; padding-right:5}
</style>
</head>
<body>
<!-- #include virtual="~/shared/top.inc -->
<div class="header"><h2>FormView Example Details Page</h2></div>
<!-- #include virtual="~/shared/viewsrc_top.inc" -->
<hr size=1 width=92%>
<div align="center">
<form runat="server">
<asp:formview id="plansView" runat="server"
datasourceid="plans"
allowpaging
width=92% cellpadding=5
enableviewstate=false>
<itemtemplate>
<table width=100%>
<tr valign="top">
<td>
<div class="header">
<h3 style="color:maroon"><%# Eval ( "Model" ) %></h2>
</div></td>
<td align="right">
<div class="header">
<h2>Plan # <%# Eval ( "PlanID" ) %></h2>
</div></td></tr>
</table>
<table width=100% cellpadding=10 style="background:ddd; border:2px outset">
<tr valign="top">
<td align="center" width=290>
<img width=290
src='/shared/images/plans/<%# Eval ( "PlanID" ) %>.jpg'
alt='<%# Eval ( "Model" ) %>'
style="border:1px inset">
<p><!-- spacer --></p>
<table width=90% class="data" cellspacing=0
style="font-size:9pt; text-align:center; border:1px inset">
<tr><th><%# Eval ( "Design" ) %></th></tr>
<tr><td><%# Eval ( "Area" ) %> ft<sup>2</sup>,
<%# Eval ( "Bedrooms" ) %> Bedrooms,
<%# Eval ( "Baths" ) %> Baths
<p>National Average Cost to Build: <br>
<b style="color:maroon">
<%# Eval ( "cost", "{0:c}" ) %>
</b>
</td></tr>
</table>
</td>
<td>
<div class="desc"><%# Eval ( "Description" ) %></div>
<div class="features"><%# Eval ( "Features" ) %></div>
<div class="specs"><%# Eval ( "Specs" ) %></div>
</td></tr>
</table>
</itemtemplate>
</asp:formview>
<asp:accessdatasource id="plans"
selectcommand="SELECT * FROM Plans"
datafile="~/app_data/plans.mdb"
runat="server" />
</form>
</div>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>