Click here to Skip to main content
12,698,024 members (24,849 online)
Click here to Skip to main content

Stats

24.7K views
385 downloads
32 bookmarked
Posted

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.
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">    // DrillDown.aspx</font>
<font color= "green">    //</font>
<font color= "green">    // The drilldown report displays customer order info. Users are presented with </font>
<font color= "green">    // a list of customers. From there, they can focus in on a customer and see the</font>
<font color= "green">    // orders shipped to that customer. Then, they can focus in on an order ID to </font>
<font color= "green">    // view the details for a particular order.</font>
<font color= "green">    //</font>
<font color= "green">    //*********************************************************************</font>
<font color= "blue">    </font>
<font color= "blue">    protected </font>string _styleSheet;
<font color= "blue"></font>
<font color= "blue">    private const </font>string _customerID = "CustomerID";
<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><font color= "blue">        if </font>(!IsPostBack)<font color= "blue"></font>
<font color= "blue">        </font>{
<font color= "blue">            </font>BindList();
<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 BindList method retrieves the list of customers</font>
<font color= "green">    // and then databinds them to the Customers Datalist</font>
<font color= "green">    //</font>
<font color= "green">    //*********************************************************************</font>
<font color= "blue"></font>
<font color= "blue">    private void</font> BindList()
<font color= "blue">    </font>{
<font color= "blue">        </font>CustomerList.DataSource = DrillDownReport.GetCustomers();
<font color= "blue">        </font>CustomerList.DataBind();
<font color= "blue">    </font>}
<font color= "blue"></font>
<font color= "green">    //*******************************************************</font>
<font color= "green">    //</font>
<font color= "green">    // DataList_ItemCommand event handler is tied to the OnItemDataBound of the Customers DataList.</font>
<font color= "green">    // It sets the selected index of the Customers List and then re-binds.</font>
<font color= "green">    //</font>
<font color= "green">    //*******************************************************</font>
<font color= "blue"></font>
<font color= "blue">    protected void</font> CustomersList_ItemCommand(object Sender, DataListCommandEventArgs e) 
<font color= "blue">    </font>{
<font color= "green">        // change the Datalist to selected index</font>
<font color= "blue">        </font>string cmd = ((LinkButton)e.CommandSource).CommandName;
<font color= "blue"></font><font color= "blue">        if </font>(cmd == "select")<font color= "blue"></font>
<font color= "blue">            </font>((DataList)Sender).SelectedIndex = e.Item.ItemIndex;
<font color= "blue"></font>
<font color= "green">        // re-bind to display data with the new selected index</font>
<font color= "blue">        </font>BindList();
<font color= "blue"></font>
<font color= "green">        // store the customer id to re-bind in the orders list</font>
<font color= "blue">        </font>ViewState[_customerID] = ((Label)e.Item.FindControl("CustomerID")).Text;
<font color= "blue">    </font>}
<font color= "blue"></font>
<font color= "green">    //*******************************************************</font>
<font color= "green">    //</font>
<font color= "green">    // OrdersList_ItemCommand event handler is tied to the OnItemDataBound of the Orders DataList.</font>
<font color= "green">    // It sets the selected index of the Orders List and then re-binds.</font>
<font color= "green">    //</font>
<font color= "green">    //*******************************************************</font>
<font color= "blue"></font>
<font color= "blue">    protected void</font> OrdersList_ItemCommand(object Sender, DataListCommandEventArgs e) 
<font color= "blue">    </font>{
<font color= "green">        // change the selected index of Orders Datalist</font>
<font color= "blue">        </font>string cmd = ((LinkButton)e.CommandSource).CommandName;
<font color= "blue">        </font>DataList sender = (DataList)Sender;
<font color= "blue"></font><font color= "blue">        if </font>(cmd == "select")<font color= "blue"></font>
<font color= "blue">            </font>sender.SelectedIndex = e.Item.ItemIndex;
<font color= "blue"></font>
<font color= "green">        // re-bind to display orders info with new selected index.</font>
<font color= "blue">        </font>sender.DataSource = GetOrders((string)ViewState[_customerID]);
<font color= "blue">        </font>sender.DataBind();
<font color= "blue">    </font>}
<font color= "blue"></font>
<font color= "green">    //*********************************************************************</font>
<font color= "green">    //</font>
<font color= "green">    // The GetOrders method calls the BLL to retrieve the list of orders shipped</font>
<font color= "green">    // for customer with customerID.</font>
<font color= "green">    //</font>
<font color= "green">    //*********************************************************************</font>
<font color= "blue"></font>
<font color= "blue">    protected </font>DrillDownReportCollection GetOrders(string customerID)
<font color= "blue">    </font>{
<font color= "green">        // only use the customerID in session if it doesn't exist.</font>
<font color= "blue"></font><font color= "blue">        if </font>(customerID == null)<font color= "blue"></font>
<font color= "blue">            </font>customerID = (string)ViewState[_customerID];
<font color= "blue"></font>
<font color= "blue">        return</font> DrillDownReport.GetOrders(customerID);
<font color= "blue">    </font>}
<font color= "blue"></font>
<font color= "green">    //*********************************************************************</font>
<font color= "green">    //</font>
<font color= "green">    // The GetOrderDetails method calls the BLL to retrieve order info given an order id.</font>
<font color= "green">    //</font>
<font color= "green">    //*********************************************************************</font>
<font color= "blue"></font>
<font color= "blue">    protected </font>DrillDownReportCollection GetOrderDetails(int orderID)
<font color= "blue">    </font>{
<font color= "blue">        return</font> DrillDownReport.GetOrderDetails(orderID);
<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>DrillDown<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"<font color= "blue">&gt</font>
        <font color= "blue">&lt</font><font color="maroon">form</font> id="DrillDown" method="post" runat="server"<font color= "blue">&gt</font>
            <font color= "blue">&lt</font><font color="maroon">table</font> border="0" cellspacing="0" cellpadding="0" width="700px"<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="650px"<font color= "blue">&gt</font>Customer Shipped Order Info<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="50px"<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><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> src="images/spacer.gif" height="10"<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:datalist id="CustomerList" runat="server" repeatdirection="Vertical" headerstyle-cssclass="CategoryHeader" alternatingitemstyle-cssclass="Content" selecteditemstyle-cssclass="Selected" repeatcolumns="1" width="100%" cellpadding="0" cellspacing="0" onitemcommand="CustomersList_ItemCommand"</font><font color= "blue">&gt</font>
                            <font color= "blue">&lt</font><font color="maroon">headertemplate</font><font color= "blue">&gt</font>
                                Customers
                            <font color= "blue">&lt/</font><font color="maroon">headertemplate</font><font color= "blue">&gt</font>
                            <font color= "blue">&lt</font><font color="maroon">itemtemplate</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt</font><font color="maroon">table</font> border="0" cellpadding="5" cellspacing="0" width="100%"<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> valign="top"<font color= "blue">&gt</font>
                                            <font color= "blue">&lt</font><font color=blue>asp:linkbutton id="button1" runat="server" Text='&lt%# DataBinder.Eval(Container.DataItem, "CompanyName") %<font color= "blue">&gt</font>' CommandName="select" /</font><font color= "blue">&gt</font>
                                            <font color= "blue">&lt</font><font color=blue>asp:label id="CustomerID" runat="server" Text='&lt%# DataBinder.Eval(Container.DataItem, "CustomerID") %<font color= "blue">&gt</font>' Visible=False /</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">itemtemplate</font><font color= "blue">&gt</font>
                            <font color= "blue">&lt</font><font color="maroon">selecteditemtemplate</font><font color= "blue">&gt</font>
                                <font color= "blue">&lt</font><font color="maroon">table</font> border="0" cellpadding="5" cellspacing="0" width="100%"<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> valign="top" class="Content"<font color= "blue">&gt</font>
                                            <font color= "blue">&lt</font><font color="maroon">b</font><font color= "blue">&gt</font>
                                                &lt%# DataBinder.Eval(Container.DataItem, "CompanyName") %<font color= "blue">&gt</font>
                                            <font color= "blue">&lt/</font><font color="maroon">b</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><font color= "blue">&gt</font>
                                            <font color= "blue">&lt</font><font color="maroon">table</font> border="0" cellpadding="0" cellspacing="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> valign="top" class="OrderID"<font color= "blue">&gt</font>
                                                        <font color= "blue">&lt</font><font color="maroon">img</font> src="images/spacer.gif" width="20" height="1"<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">td</font><font color= "blue">&gt</font>
                                                        <font color= "blue">&lt</font><font color=blue>asp:datalist id="OrderList" runat="server" DataSource='&lt%# GetOrders((string)DataBinder.Eval(Container.DataItem, "CustomerID")) %<font color= "blue">&gt</font>' RepeatDirection="Vertical" repeatcolumns="1" Width="100%" CellPadding="0" cellspacing="0" OnItemCommand="OrdersList_ItemCommand"</font><font color= "blue">&gt</font>
                                                            <font color= "blue">&lt</font><font color="maroon">headertemplate</font><font color= "blue">&gt</font>
                                                                <font color= "blue">&lt</font><font color="maroon">table</font> border="0" cellpadding="0" cellspacing="0" width="100%"<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> width="100" class="bold"<font color= "blue">&gt</font>Order ID<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> width="200" class="bold"<font color= "blue">&gt</font>Order Date<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> class="bold"<font color= "blue">&gt</font>Shipped Date<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">headertemplate</font><font color= "blue">&gt</font>
                                                            <font color= "blue">&lt</font><font color="maroon">separatortemplate</font><font color= "blue">&gt</font>
                                                                <font color= "blue">&lt</font><font color="maroon">hr</font><font color= "blue">&gt</font>
                                                            <font color= "blue">&lt/</font><font color="maroon">separatortemplate</font><font color= "blue">&gt</font>
                                                            <font color= "blue">&lt</font><font color="maroon">itemtemplate</font><font color= "blue">&gt</font>
                                                                <font color= "blue">&lt</font><font color="maroon">table</font> border="0" cellpadding="0" cellspacing="0" width="100%"<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> width="100"<font color= "blue">&gt</font>
                                                                            <font color= "blue">&lt</font><font color=blue>asp:linkbutton id="Linkbutton1" runat="server" Text='&lt%# DataBinder.Eval(Container.DataItem, "OrderID") %<font color= "blue">&gt</font>' CommandName="select" /</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">td</font> width="200"<font color= "blue">&gt</font>
                                                                            <font color= "blue">&lt</font><font color=blue>asp:label id="Label6" runat="server" Text='&lt%# string.Format("{0:d}", DataBinder.Eval(Container.DataItem, "OrderDate")) %<font color= "blue">&gt</font>'/</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">td</font><font color= "blue">&gt</font>
                                                                            <font color= "blue">&lt</font><font color=blue>asp:label id="Label7" runat="server" Text='&lt%# string.Format("{0:d}", DataBinder.Eval(Container.DataItem, "ShippedDate")) %<font color= "blue">&gt</font>' /</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">itemtemplate</font><font color= "blue">&gt</font>
                                                            <font color= "blue">&lt</font><font color="maroon">selecteditemtemplate</font><font color= "blue">&gt</font>
                                                                <font color= "blue">&lt</font><font color="maroon">table</font> border="0" cellpadding="0" cellspacing="0" width="100%"<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><font color= "blue">&gt</font>
                                                                            <font color= "blue">&lt</font><font color="maroon">table</font> border="0" cellpadding="0" cellspacing="0" width="100%"<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> width="100" class="ColoredOrder"<font color= "blue">&gt</font>
                                                                                        &lt%# DataBinder.Eval(Container.DataItem, "OrderID") %<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">td</font> width="200"<font color= "blue">&gt</font>
                                                                                        <font color= "blue">&lt</font><font color=blue>asp:label id="Label2" runat="server" Text='&lt%# string.Format("{0:d}", DataBinder.Eval(Container.DataItem, "OrderDate")) %<font color= "blue">&gt</font>'/</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">td</font><font color= "blue">&gt</font>
                                                                                        <font color= "blue">&lt</font><font color=blue>asp:label id="Label3" runat="server" Text='&lt%# string.Format("{0:d}", DataBinder.Eval(Container.DataItem, "ShippedDate")) %<font color= "blue">&gt</font>' /</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">hr</font><font color= "blue">&gt</font>
                                                                            <font color= "blue">&lt</font><font color="maroon">table</font> border="0" cellpadding="0" cellspacing="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> valign="top" class="OrderID"<font color= "blue">&gt</font>
                                                                                        <font color= "blue">&lt</font><font color="maroon">img</font> src="images/spacer.gif" width="100" height="1"<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">td</font><font color= "blue">&gt</font>
                                                                                        <font color= "blue">&lt</font><font color=blue>asp:label id="Label4" runat="server" Text='&lt%# DataBinder.Eval(Container.DataItem, "ShipAddress") %<font color= "blue">&gt</font>' CssClass=ColoredOrder/</font><font color= "blue">&gt</font>
                                                                                        <font color= "blue">&lt</font><font color=blue>asp:label id="Label5" runat="server" Text='&lt%# DataBinder.Eval(Container.DataItem, "ShipCity") %<font color= "blue">&gt</font>' CssClass=ColoredOrder/</font><font color= "blue">&gt</font>,
                                                                                        <font color= "blue">&lt</font><font color=blue>asp:label id="Label8" runat="server" Text='&lt%# DataBinder.Eval(Container.DataItem, "ShipCountry") %<font color= "blue">&gt</font>' CssClass=ColoredOrder/</font><font color= "blue">&gt</font>
                                                                                        <font color= "blue">&lt</font><font color=blue>asp:label id="Label9" runat="server" Text='&lt%# DataBinder.Eval(Container.DataItem, "ShipPostalCOde") %<font color= "blue">&gt</font>' CssClass=ColoredOrder<font color= "blue">/&gt</font><font color= "blue">&lt</font><font color="maroon">br</font></font><font color= "blue">&gt</font>
                                                                                        <font color= "blue">&lt</font><font color=blue>asp:datagrid id=OrderDetailsGrid runat="server" autogeneratecolumns="false" DataSource='&lt%# GetOrderDetails((int)DataBinder.Eval(Container.DataItem, "OrderID")) %<font color= "blue">&gt</font>' BorderWidth="0" GridLines="None" Width="100%"</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="ProductName" headertext="Product" itemstyle-cssclass="ItemStyle" headerstyle-cssclass="ProductHeader" itemstyle-width="200"<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="UnitPrice" headertext="Unit Price" itemstyle-cssclass="ItemStyleRight" headerstyle-cssclass="ProductHeader" sortexpression="UnitPrice" dataformatstring="{0:c}" itemstyle-width="70"<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="Quantity" headertext="Quantity" itemstyle-cssclass="ItemStyleRight" headerstyle-cssclass="ProductHeaderRight" itemstyle-width="100"<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><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">table</font><font color= "blue">&gt</font>
                                                            <font color= "blue">&lt/</font><font color="maroon">selecteditemtemplate</font><font color= "blue">&gt</font>
                                                        <font color= "blue">&lt/</font><font color=blue>asp:datalist</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">table</font><font color= "blue">&gt</font>
                            <font color= "blue">&lt/</font><font color="maroon">selecteditemtemplate</font><font color= "blue">&gt</font>
                        <font color= "blue">&lt/</font><font color=blue>asp:datalist</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">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

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170118.1 | Last Updated 1 Oct 2005
Article Copyright 2005 by StylezHouse
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid