download Receipt.ascx.cs
Language: C#
LOC: 27
Project Info
commercefinity - An open source eCommerce ...odule(commercefinity)
Server: Google
Type: svn
...runk\Commerce\PageControls\
   AddItemResult.ascx
   AddItemResult.ascx.cs
   Catalog.ascx
   Catalog.ascx.cs
   Checkout.ascx
   Checkout.ascx.cs
   MyOrders.ascx
   MyOrders.ascx.cs
   PPCheckout.ascx
   PPCheckout.ascx.cs
   Product.ascx
   Product.ascx.cs
   Receipt.ascx
   Receipt.ascx.cs
   ShoppingBasket.ascx
   ShoppingBasket.ascx.cs

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Commerce_PageControls_Receipt : System.Web.UI.UserControl
{
    protected Commerce.Common.Order order;
    protected void Page_Load(object sender, EventArgs e)
    {
        string orderGuid = Utility.GetParameter("t");
        if (orderGuid != string.Empty)
        {
            order = OrderController.GetOrder(orderGuid);
            lblReceipt.Text = order.ToHtml();
        }
        else
        {
            lblReceipt.Text = "<h2>Invalid Order</h2>";

        }
    }
}

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us