using System; using System.Data; using System.Configuration; 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 Cart : WebBlockPage { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (ShoppingCart.Count == 0) { hypKeepShopping.Visible = false; btnCheckout.Visible = false; } if (Request.UrlReferrer != null) hypKeepShopping.NavigateUrl = Request.UrlReferrer.ToString(); else hypKeepShopping.NavigateUrl = "Default.aspx"; } } protected void btnCheckout_Click(object sender, ImageClickEventArgs e) { //Page.cus Response.Redirect("PreCheckout.aspx"); } }