Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

Conversion of Reporting Starter Kit to use Mono/MySQL

, 1 Oct 2005
A porting of the ASP.NET reporting starter kit to use Mono, MySQL and Apache on a Linux system.
Reporting_Kit_Conversion_demo.zip
reports
bin
ASPNETReports.dll
ASPNETReports.dll.bak
MySql.Data.dll
MySql.Data.Tests.dll
components
bin
Release
ASPNETReports.dll
BLL
DAL
docs
images
1x1.gif
crosstabnestedcontrols.png
crosstabtotals.png
customers.gif
drilldownnestedcontrols.png
employees.gif
getorderdetails.gif
GetOrders.gif
hierarchicalpaging.gif
hierarchicalreport.gif
hierarchicalschema.gif
hierarchicalsorting.gif
masterdetaildetails.png
masterdetailsummary.png
masterdetailtables.png
querysample.gif
querysample2.gif
simpleoverview.png
simplesp.png
tabcolorcode.png
tabdetail.png
tabheader.gif
tabheader.png
tabnestedcontrols.png
tabsortshot.png
tabularextendedprice.png
textshot.gif
viscategorysales.gif
viscategorysales.png
vischartstructure.png
xtabsql.png
Global.asax
images
1x1.gif
asp.net-reports.gif
background.gif
crosstab.gif
crosstabnestedcontrols.png
crosstabtotals.png
customers.gif
drilldown.gif
drilldownnestedcontrols.png
employees.gif
getorderdetails.gif
GetOrders.gif
grid_background.gif
hierarchal.gif
hierarchical.gif
hierarchicalpaging.gif
hierarchicalreport.gif
hierarchicalschema.gif
hierarchicalsorting.gif
logo-neg.gif
logo.gif
masterdetail.gif
masterdetaildetails.png
masterdetails.gif
masterdetailsummary.png
masterdetailtables.png
matrix.gif
querysample.gif
querysample2.gif
report-table-bg.gif
reporting.gif
simple.gif
simpleoverview.png
simplesp.png
spacer.gif
tabcolorcode.png
tabdetail.png
tabheader.gif
tabheader.png
tabnestedcontrols.png
tabsortshot.png
tabular.gif
tabularcolorcode.png
tabularextendedprice.png
tabularsorting.png
text.gif
textalternate.gif
textreport.gif
textshot.gif
viscategorysales.gif
viscategorysales.png
vischartstructure.png
visual.gif
xtabsql.png
sourceviewer
1x1.gif
crosstab.src
drilldown.src
grid_background.gif
hierarchical.src
masterdetail.src
simple.src
tabular.src
textreport.src
visual.src
sql
<html><head><link rel=stylesheet href=style.css></head><body><div class=SourcePanel style='font-size:12'><pre style='background-color:white'>
&lt%@ Page language="c#" %<font color= "blue">&gt</font>
&lt%@ Import Namespace="System" %<font color= "blue">&gt</font>
&lt%@ Import Namespace="System.Web.UI.WebControls" %<font color= "blue">&gt</font>
&lt%@ Import Namespace="ASPNET.StarterKit.Reports.Components" %<font color= "blue">&gt</font>

<font color= "blue">&lt</font><font color="maroon">script</font> runat="server"<font color= "blue">&gt</font>
<font color= "green">    //********************************************************************************</font>
<font color= "green">    //</font>
<font color= "green">    // MasterDetail.aspx</font>
<font color= "green">    //</font>
<font color= "green">    // The MasterDetail.aspx page shows a basic way to filter and group related data (in</font>
<font color= "green">    // chis case, filtering by year, and grouping by quarters).  This is accomplished by</font>
<font color= "green">    // showing two different datagrids, each bound by separate stored procedures.</font>
<font color= "green">    //</font>
<font color= "green">    //********************************************************************************</font>
<font color= "blue">    </font>
<font color= "blue">    private const </font>string _masterDetailYear = "master_detail_year";
<font color= "blue">    private const </font>string _masterDetailQuarter = "master_detail_quarter";
<font color= "blue">    private </font>double _salesTotal;
<font color= "blue">    protected </font>string _styleSheet;
<font color= "blue"></font>
<font color= "blue">    private void</font> Page_Load(object sender, System.EventArgs e)
<font color= "blue">    </font>{
<font color= "blue">        </font>_salesTotal = 0;
<font color= "blue"></font><font color= "blue">        if </font>(!IsPostBack)<font color= "blue"></font>
<font color= "blue">        </font>{
<font color= "blue"></font><font color= "blue">            if </font>(YearDropDownList.Items.FindByValue(Convert.ToString(Session[_masterDetailYear])) != null)<font color= "blue"></font>
<font color= "blue">                </font>YearDropDownList.Items.FindByValue(Convert.ToString(Session[_masterDetailYear])).Selected = true;
<font color= "blue"></font><font color= "blue">            if </font>(QuarterDropDownList.Items.FindByValue(Convert.ToString(Session[_masterDetailQuarter])) != null)<font color= "blue"></font>
<font color= "blue">                </font>QuarterDropDownList.Items.FindByValue(Convert.ToString(Session[_masterDetailQuarter])).Selected = true;
<font color= "blue"></font>
<font color= "blue">            </font>BindSummary();
<font color= "blue">            </font>BindDetails();
<font color= "blue">        </font>}
<font color= "blue"></font>
<font color= "green">        // switches the style sheet based on printer friendly view or not</font>
<font color= "blue"></font><font color= "blue">        if </font>(Request.QueryString["Print"]=="true")<font color= "blue"></font>
<font color= "blue">        </font>{
<font color= "blue">            </font>_styleSheet = "stylesPrint.css";
<font color= "blue">            </font>PrintButton.Visible = true;
<font color= "blue">        </font>}
<font color= "blue"></font><font color= "blue">        else </font><font color= "blue"></font>
<font color= "blue">        </font>{
<font color= "blue">            </font>_styleSheet = "styles.css";
<font color= "blue">        </font>}
<font color= "blue">    </font>}
<font color= "blue"></font>
<font color= "green">    //********************************************************************************</font>
<font color= "green">    //</font>
<font color= "green">    // The BindSummary method retrieves the OrderSummary for a given year, and</font>
<font color= "green">    // then databinds the results to the SummaryDataGrid.</font>
<font color= "green">    //</font>
<font color= "green">    //********************************************************************************</font>
<font color= "blue"></font>
<font color= "blue">    private void</font> BindSummary()
<font color= "blue">    </font>{
<font color= "blue">        </font>SummaryLabel.Text = YearDropDownList.SelectedItem.Text + " Summary";
<font color= "blue">        </font>SummaryDataGrid.DataSource = GetSales(Convert.ToInt32(YearDropDownList.SelectedItem.Value));
<font color= "blue">        </font>SummaryDataGrid.DataBind();
<font color= "blue">    </font>}
<font color= "blue"></font>
<font color= "green">    //********************************************************************************</font>
<font color= "green">    //</font>
<font color= "green">    // The BindDetails method retrieves the OrderDetails for a given year and quarter, and</font>
<font color= "green">    // then databinds the results to the DetailsDataGrid.</font>
<font color= "green">    //</font>
<font color= "green">    //********************************************************************************</font>
<font color= "blue">    </font>
<font color= "blue">    private void</font> BindDetails()
<font color= "blue">    </font>{
<font color= "blue">        </font>DetailsLabel.Text = YearDropDownList.SelectedItem.Text;
<font color= "blue"></font><font color= "blue">        if </font>(QuarterDropDownList.SelectedItem.Value == "0")<font color= "blue"></font>
<font color= "blue">            </font>DetailsLabel.Text += " (All Quarters) Details";
<font color= "blue"></font><font color= "blue">        else</font><font color= "blue"></font>
<font color= "blue">            </font>DetailsLabel.Text += " (Quarter " + QuarterDropDownList.SelectedItem.Text + ") Details";
<font color= "blue"></font>
<font color= "blue">        </font>DetailsDataGrid.DataSource = GetSalesDetails(Convert.ToInt32(YearDropDownList.SelectedItem.Value), Convert.ToInt32(QuarterDropDownList.SelectedItem.Value));
<font color= "blue">        </font>DetailsDataGrid.DataBind();
<font color= "blue">    </font>}
<font color= "blue"></font>
<font color= "green">    //********************************************************************************</font>
<font color= "green">    //</font>
<font color= "green">    // The GetSales uses the MasterDetail BLL component to query the database to retrieve</font>
<font color= "green">    // the summary of sales for a given year.</font>
<font color= "green">    //</font>
<font color= "green">    //********************************************************************************</font>
<font color= "blue"></font>
<font color= "blue">    protected </font>MasterDetailReportCollection GetSales(int year)
<font color= "blue">    </font>{
<font color= "blue">        return</font> MasterDetailReport.GetSummary(year);
<font color= "blue">    </font>}
<font color= "blue"></font>
<font color= "green">    //********************************************************************************</font>
<font color= "green">    //</font>
<font color= "green">    // The GetSalesDetails uses the MasterDetail BLL component to query the database to</font>
<font color= "green">    // retrieve the details of sales for a given year and quarter.</font>
<font color= "green">    //</font>
<font color= "green">    //********************************************************************************</font>
<font color= "blue">    </font>
<font color= "blue">    protected </font>MasterDetailReportCollection GetSalesDetails(int year, int quarter)
<font color= "blue">    </font>{
<font color= "blue">        return</font> MasterDetailReport.GetDetails(year, quarter);
<font color= "blue">    </font>}
<font color= "blue"></font>
<font color= "green">    //********************************************************************************</font>
<font color= "green">    //</font>
<font color= "green">    // DropDownList event handlers for the Year and Quarter DropDownLists.  They make</font>
<font color= "green">    // calls to rebind the DetailsDataGrid (and if applicable) the SummaryDataGrid.</font>
<font color= "green">    //</font>
<font color= "green">    //********************************************************************************</font>
<font color= "blue"></font>
<font color= "blue">    private void</font> YearDropDownList_SelectedIndexChanged(object sender, System.EventArgs e)
<font color= "blue">    </font>{
<font color= "blue">        </font>Session[_masterDetailYear] = YearDropDownList.SelectedItem.Value;
<font color= "blue">        </font>BindSummary();
<font color= "blue">        </font>BindDetails();
<font color= "blue">    </font>}
<font color= "blue"></font>
<font color= "blue">    private void</font> QuarterDropDownList_SelectedIndexChanged(object sender, System.EventArgs e) 
<font color= "blue">    </font>{
<font color= "blue">        </font>Session[_masterDetailQuarter] = QuarterDropDownList.SelectedItem.Value;
<font color= "blue">        </font>BindDetails();
<font color= "blue">    </font>} 
<font color= "blue"></font>
<font color= "green">    //********************************************************************************</font>
<font color= "green">    //</font>
<font color= "green">    // The SumItems event handler is called after the masterDataGrid has been databound.</font>
<font color= "green">    // It iterates thru the list to calculate the sum of sales, and then adds the</font>
<font color= "green">    // results (as HTML) to the datagrid table.</font>
<font color= "green">    //</font>
<font color= "green">    //********************************************************************************</font>
<font color= "blue"></font>
<font color= "blue">    private void</font> SumItems(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
<font color= "blue">    </font>{
<font color= "blue"></font><font color= "blue">        if </font>(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)<font color= "blue"></font>
<font color= "blue">        </font>{
<font color= "blue">            </font>CalcTotal( e.Item.Cells[2].Text );
<font color= "blue">            </font>e.Item.Cells[2].Text = string.Format("{0:c}", Convert.ToDouble(e.Item.Cells[2].Text));
<font color= "blue">        </font>}
<font color= "blue"></font><font color= "blue">        else if </font>(e.Item.ItemType == ListItemType.Footer )<font color= "blue"></font>
<font color= "blue">        </font>{
<font color= "blue">            </font>e.Item.Cells[0].Text="Sales Total";
<font color= "blue">            </font>e.Item.Cells[2].Text = string.Format("{0:c}", _salesTotal);
<font color= "blue">        </font>}
<font color= "blue">    </font>}
<font color= "blue"></font>
<font color= "blue">    private void</font> CalcTotal(string _price)
<font color= "blue">    </font>{
<font color= "blue">        </font>_salesTotal += Double.Parse(_price);
<font color= "blue">    </font>}
<font color= "blue">&lt/</font><font color="maroon">script</font><font color= "blue">&gt</font>

<font color= "blue">&lt!</font><font color="maroon">doctype</font> HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" <font color= "blue">&gt</font>
<font color= "blue">&lt</font><font color="maroon">html</font><font color= "blue">&gt</font>
    <font color= "blue">&lt</font><font color="maroon">head</font><font color= "blue">&gt</font>
        <font color= "blue">&lt</font><font color="maroon">title</font><font color= "blue">&gt</font>Master Detail<font color= "blue">&lt/</font><font color="maroon">title</font><font color= "blue">&gt</font>
        <font color= "blue">&lt</font><font color="maroon">meta</font> content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"<font color= "blue">&gt</font>
        <font color= "blue">&lt</font><font color="maroon">LINK</font> href="&lt%= _styleSheet %<font color= "blue">&gt</font>" type=text/css rel=stylesheet<font color= "blue">&gt</font>
        <font color= "blue">&lt</font><font color="maroon">script</font> src="scripts.js"<font color= "blue">&gt</font><font color= "blue">&lt/</font><font color="maroon">script</font><font color= "blue">&gt</font>
    <font color= "blue">&lt/</font><font color="maroon">head</font><font color= "blue">&gt</font>
    <font color= "blue">&lt</font><font color="maroon">body</font> class="Report" leftmargin="17" topmargin="17" marginwidth="0" marginheight="0"<font color= "blue">&gt</font>
        <font color= "blue">&lt</font><font color="maroon">form</font> id="MasterDetail" method="post" runat="server"<font color= "blue">&gt</font>
            <font color= "blue">&lt</font><font color="maroon">table</font> cellspacing="0" cellpadding="3" width="400px" border="0"<font color= "blue">&gt</font>
                <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt</font><font color="maroon">td</font> class="ReportTitle" width="350"<font color= "blue">&gt</font>Master Detail Report<font color= "blue">&lt/</font><font color="maroon">td</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt</font><font color="maroon">td</font> align="right" width="50"<font color= "blue">&gt</font><font color= "blue">&lt</font><font color=blue>asp:hyperlink id="PrintButton" navigateurl="javascript:Print()" cssclass="printbutton" runat="server" visible="False"<font color= "blue">&gt</font>Print<font color= "blue">&lt/</font>asp:hyperlink<font color= "blue">&gt</font><font color= "blue">&lt/</font><font color="maroon">td</font></font><font color= "blue">&gt</font>
                <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt</font><font color="maroon">td</font> colspan="2"<font color= "blue">&gt</font><font color= "blue">&lt</font><font color="maroon">img</font> height="10" src="images/spacer.gif"<font color= "blue">&gt</font><font color= "blue">&lt/</font><font color="maroon">td</font><font color= "blue">&gt</font>
                <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt</font><font color="maroon">td</font> colspan="2" class="Select"<font color= "blue">&gt</font>
                        <font color= "blue">&lt</font><font color="maroon">table</font> cellspacing="3" cellpadding="0" border="0"<font color= "blue">&gt</font>
                            <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt</font><font color="maroon">td</font> class="bold"<font color= "blue">&gt</font>
                                    Select Year:
                                <font color= "blue">&lt/</font><font color="maroon">td</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt</font><font color="maroon">td</font> align="right"<font color= "blue">&gt</font>
                                    <font color= "blue">&lt</font><font color=blue>asp:dropdownlist id="YearDropDownList" OnSelectedIndexChanged="YearDropDownList_SelectedIndexChanged" runat="server" autopostback="True" width="56"</font><font color= "blue">&gt</font>
                                        <font color= "blue">&lt</font><font color=blue>asp:listitem value="1996"<font color= "blue">&gt</font>1996<font color= "blue">&lt/</font>asp:listitem</font><font color= "blue">&gt</font>
                                        <font color= "blue">&lt</font><font color=blue>asp:listitem value="1997"<font color= "blue">&gt</font>1997<font color= "blue">&lt/</font>asp:listitem</font><font color= "blue">&gt</font>
                                        <font color= "blue">&lt</font><font color=blue>asp:listitem value="1998"<font color= "blue">&gt</font>1998<font color= "blue">&lt/</font>asp:listitem</font><font color= "blue">&gt</font>
                                    <font color= "blue">&lt/</font><font color=blue>asp:dropdownlist</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt/</font><font color="maroon">td</font><font color= "blue">&gt</font>
                            <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                            <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt</font><font color="maroon">td</font> class="bold"<font color= "blue">&gt</font>
                                    Select Quarter:
                                <font color= "blue">&lt/</font><font color="maroon">td</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt</font><font color="maroon">td</font> align="right"<font color= "blue">&gt</font>
                                    <font color= "blue">&lt</font><font color=blue>asp:dropdownlist id="QuarterDropDownList" OnSelectedIndexChanged="QuarterDropDownList_SelectedIndexChanged" runat="server" autopostback="True" width="56px"</font><font color= "blue">&gt</font>
                                        <font color= "blue">&lt</font><font color=blue>asp:listitem value="0"<font color= "blue">&gt</font>All<font color= "blue">&lt/</font>asp:listitem</font><font color= "blue">&gt</font>
                                        <font color= "blue">&lt</font><font color=blue>asp:listitem value="1"<font color= "blue">&gt</font>1<font color= "blue">&lt/</font>asp:listitem</font><font color= "blue">&gt</font>
                                        <font color= "blue">&lt</font><font color=blue>asp:listitem value="2"<font color= "blue">&gt</font>2<font color= "blue">&lt/</font>asp:listitem</font><font color= "blue">&gt</font>
                                        <font color= "blue">&lt</font><font color=blue>asp:listitem value="3"<font color= "blue">&gt</font>3<font color= "blue">&lt/</font>asp:listitem</font><font color= "blue">&gt</font>
                                        <font color= "blue">&lt</font><font color=blue>asp:listitem value="4"<font color= "blue">&gt</font>4<font color= "blue">&lt/</font>asp:listitem</font><font color= "blue">&gt</font>
                                    <font color= "blue">&lt/</font><font color=blue>asp:dropdownlist</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt/</font><font color="maroon">td</font><font color= "blue">&gt</font>
                            <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                        <font color= "blue">&lt/</font><font color="maroon">table</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt/</font><font color="maroon">td</font><font color= "blue">&gt</font>
                <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt</font><font color="maroon">td</font> colspan="2"<font color= "blue">&gt</font><font color= "blue">&lt</font><font color="maroon">img</font> height="10" src="images/spacer.gif"<font color= "blue">&gt</font><font color= "blue">&lt/</font><font color="maroon">td</font><font color= "blue">&gt</font>
                <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt</font><font color="maroon">td</font> colspan="2" class="textbold"<font color= "blue">&gt</font><font color= "blue">&lt</font><font color=blue>asp:label id="SummaryLabel" runat="server"<font color= "blue">&gt</font><font color= "blue">&lt/</font>asp:label<font color= "blue">&gt</font><font color= "blue">&lt/</font><font color="maroon">td</font></font><font color= "blue">&gt</font>
                <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt</font><font color="maroon">td</font> colspan="2"<font color= "blue">&gt</font><font color= "blue">&lt</font><font color="maroon">img</font> height="10" src="images/spacer.gif"<font color= "blue">&gt</font><font color= "blue">&lt/</font><font color="maroon">td</font><font color= "blue">&gt</font>
                <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt</font><font color="maroon">td</font> colspan="2"<font color= "blue">&gt</font><font color= "blue">&lt</font><font color=blue>asp:datagrid id="SummaryDataGrid" OnItemDataBound="SumItems" runat="server" cssclass="content" borderwidth="0" cellpadding="3" showfooter="True" width="400" gridlines="Horizontal" autogeneratecolumns="False"</font><font color= "blue">&gt</font>
                            <font color= "blue">&lt</font><font color="maroon">columns</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt</font><font color=blue>asp:boundcolumn datafield="Quarter" headertext="Quarter" itemstyle-cssclass="ItemStyle" headerstyle-cssclass="HeaderStyle" footerstyle-cssclass="FooterStyle"<font color= "blue">&gt</font><font color= "blue">&lt/</font>asp:boundcolumn</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt</font><font color=blue>asp:boundcolumn datafield="OrdersShipped" headertext="Orders Shipped" itemstyle-cssclass="ItemStyleRight" headerstyle-cssclass="HeaderStyleRight" footerstyle-cssclass="FooterStyleRight"<font color= "blue">&gt</font><font color= "blue">&lt/</font>asp:boundcolumn</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt</font><font color=blue>asp:boundcolumn datafield="Sales" headertext="Sales" itemstyle-cssclass="ItemStyleRight" headerstyle-cssclass="HeaderStyleRight" footerstyle-cssclass="FooterStyleRight"<font color= "blue">&gt</font><font color= "blue">&lt/</font>asp:boundcolumn</font><font color= "blue">&gt</font>
                            <font color= "blue">&lt/</font><font color="maroon">columns</font><font color= "blue">&gt</font>
                        <font color= "blue">&lt/</font><font color=blue>asp:datagrid<font color= "blue">&gt</font><font color= "blue">&lt/</font><font color="maroon">td</font></font><font color= "blue">&gt</font>
                <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt</font><font color="maroon">td</font> colspan="2"<font color= "blue">&gt</font><font color= "blue">&lt</font><font color="maroon">img</font> height="10" src="images/spacer.gif"<font color= "blue">&gt</font><font color= "blue">&lt/</font><font color="maroon">td</font><font color= "blue">&gt</font>
                <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt</font><font color="maroon">td</font> colspan="2" class="textbold"<font color= "blue">&gt</font><font color= "blue">&lt</font><font color=blue>asp:label id="DetailsLabel" runat="server"<font color= "blue">&gt</font><font color= "blue">&lt/</font>asp:label<font color= "blue">&gt</font><font color= "blue">&lt/</font><font color="maroon">td</font></font><font color= "blue">&gt</font>
                <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt</font><font color="maroon">td</font> colspan="2"<font color= "blue">&gt</font><font color= "blue">&lt</font><font color="maroon">img</font> height="10" src="images/spacer.gif"<font color= "blue">&gt</font><font color= "blue">&lt/</font><font color="maroon">td</font><font color= "blue">&gt</font>
                <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                <font color= "blue">&lt</font><font color="maroon">tr</font><font color= "blue">&gt</font>
                    <font color= "blue">&lt</font><font color="maroon">td</font> colspan="2"<font color= "blue">&gt</font><font color= "blue">&lt</font><font color=blue>asp:datagrid id="DetailsDataGrid" runat="server" cssclass="content" borderwidth="0" cellpadding="3" width="400" gridlines="Horizontal" autogeneratecolumns="False" showfooter="True"</font><font color= "blue">&gt</font>
                            <font color= "blue">&lt</font><font color="maroon">columns</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt</font><font color=blue>asp:boundcolumn datafield="OrderID" headertext="Order ID" itemstyle-cssclass="ItemStyle" headerstyle-cssclass="HeaderStyle" footerstyle-cssclass="FooterStyle"<font color= "blue">&gt</font><font color= "blue">&lt/</font>asp:boundcolumn</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt</font><font color=blue>asp:boundcolumn datafield="OrderDate" headertext="Orders Date" dataformatstring="{0:d}" itemstyle-cssclass="ItemStyleRight" headerstyle-cssclass="HeaderStyleRight" footerstyle-cssclass="FooterStyleRight"<font color= "blue">&gt</font><font color= "blue">&lt/</font>asp:boundcolumn</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt</font><font color=blue>asp:boundcolumn datafield="Sales" headertext="Sales" dataformatstring="{0:c}" itemstyle-cssclass="ItemStyleRight" headerstyle-cssclass="HeaderStyleRight" footerstyle-cssclass="FooterStyleRight"<font color= "blue">&gt</font><font color= "blue">&lt/</font>asp:boundcolumn</font><font color= "blue">&gt</font>
                            <font color= "blue">&lt/</font><font color="maroon">columns</font><font color= "blue">&gt</font>
                        <font color= "blue">&lt/</font><font color=blue>asp:datagrid<font color= "blue">&gt</font><font color= "blue">&lt/</font><font color="maroon">td</font></font><font color= "blue">&gt</font>
                <font color= "blue">&lt/</font><font color="maroon">tr</font><font color= "blue">&gt</font>
            <font color= "blue">&lt/</font><font color="maroon">table</font><font color= "blue">&gt</font>
        <font color= "blue">&lt/</font><font color="maroon">form</font><font color= "blue">&gt</font>
    <font color= "blue">&lt/</font><font color="maroon">body</font><font color= "blue">&gt</font>
<font color= "blue">&lt/</font><font color="maroon">html</font><font color= "blue">&gt</font>
</pre>

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.

License

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

Share

About the Author

StylezHouse
Web Developer
United States United States
No Biography provided

| Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 1 Oct 2005
Article Copyright 2005 by StylezHouse
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid