|
<%@ Page language="c#" Codebehind="MasterDetail.aspx.cs" AutoEventWireup="false" Inherits="ASPNET.StarterKit.Reports.MasterDetail" %>
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>Master Detail</title>
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="<%= _styleSheet %>" type=text/css
rel=stylesheet>
<script src="scripts.js"></script>
</head>
<body class="Report" leftmargin="17" topmargin="17" marginwidth="0" marginheight="0">
<form id="MasterDetail" method="post" runat="server">
<table cellspacing="0" cellpadding="3" width="400px" border="0">
<tr>
<td class="ReportTitle" width="350">Master Detail Report</td>
<td align="right" width="50"><asp:hyperlink id="PrintButton" navigateurl="javascript:Print()" cssclass="printbutton" runat="server" visible="False">Print</asp:hyperlink></td>
</tr>
<tr>
<td colspan="2"><img height="10" src="images/spacer.gif"></td>
</tr>
<tr>
<td colspan="2" class="Select">
<table cellspacing="3" cellpadding="0" border="0">
<tr>
<td class="bold">
Select Year:
</td>
<td align="right">
<asp:dropdownlist id="YearDropDownList" runat="server" autopostback="True" width="56">
<asp:listitem value="1996">1996</asp:listitem>
<asp:listitem value="1997">1997</asp:listitem>
<asp:listitem value="1998">1998</asp:listitem>
</asp:dropdownlist>
</td>
</tr>
<tr>
<td class="bold">
Select Quarter:
</td>
<td align="right">
<asp:dropdownlist id="QuarterDropDownList" runat="server" autopostback="True" width="56px">
<asp:listitem value="0">All</asp:listitem>
<asp:listitem value="1">1</asp:listitem>
<asp:listitem value="2">2</asp:listitem>
<asp:listitem value="3">3</asp:listitem>
<asp:listitem value="4">4</asp:listitem>
</asp:dropdownlist>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><img height="10" src="images/spacer.gif"></td>
</tr>
<tr>
<td colspan="2" class="textbold"><asp:label id="SummaryLabel" runat="server"></asp:label></td>
</tr>
<tr>
<td colspan="2"><img height="10" src="images/spacer.gif"></td>
</tr>
<tr>
<td colspan="2"><asp:datagrid id="SummaryDataGrid" runat="server" cssclass="content" borderwidth="0" cellpadding="3" showfooter="True" width="400" gridlines="Horizontal" autogeneratecolumns="False">
<columns>
<asp:boundcolumn datafield="Quarter" headertext="Quarter" itemstyle-cssclass="ItemStyle" headerstyle-cssclass="HeaderStyle" footerstyle-cssclass="FooterStyle"></asp:boundcolumn>
<asp:boundcolumn datafield="OrdersShipped" headertext="Orders Shipped" itemstyle-cssclass="ItemStyleRight" headerstyle-cssclass="HeaderStyleRight" footerstyle-cssclass="FooterStyleRight"></asp:boundcolumn>
<asp:boundcolumn datafield="Sales" headertext="Sales" itemstyle-cssclass="ItemStyleRight" headerstyle-cssclass="HeaderStyleRight" footerstyle-cssclass="FooterStyleRight"></asp:boundcolumn>
</columns>
</asp:datagrid></td>
</tr>
<tr>
<td colspan="2"><img height="10" src="images/spacer.gif"></td>
</tr>
<tr>
<td colspan="2" class="textbold"><asp:label id="DetailsLabel" runat="server"></asp:label></td>
</tr>
<tr>
<td colspan="2"><img height="10" src="images/spacer.gif"></td>
</tr>
<tr>
<td colspan="2"><asp:datagrid id="DetailsDataGrid" runat="server" cssclass="content" borderwidth="0" cellpadding="3" width="400" gridlines="Horizontal" autogeneratecolumns="False" showfooter="True">
<columns>
<asp:boundcolumn datafield="OrderID" headertext="Order ID" itemstyle-cssclass="ItemStyle" headerstyle-cssclass="HeaderStyle" footerstyle-cssclass="FooterStyle"></asp:boundcolumn>
<asp:boundcolumn datafield="OrderDate" headertext="Orders Date" dataformatstring="{0:d}" itemstyle-cssclass="ItemStyleRight" headerstyle-cssclass="HeaderStyleRight" footerstyle-cssclass="FooterStyleRight"></asp:boundcolumn>
<asp:boundcolumn datafield="Sales" headertext="Sales" dataformatstring="{0:c}" itemstyle-cssclass="ItemStyleRight" headerstyle-cssclass="HeaderStyleRight" footerstyle-cssclass="FooterStyleRight"></asp:boundcolumn>
</columns>
</asp:datagrid></td>
</tr>
</table>
</form>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here