Web/CartList.aspx

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CartList.aspx.cs" Inherits="HotelShop.CartList" %>
<%@ Register src="Control/header.ascx" tagname="header" tagprefix="uc1" %>

<%@ Register src="Control/Footer.ascx" tagname="Footer" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>购物车</title>
<link rel="stylesheet" type="text/css" href="/Content/css/huiyuan.css" />
<link rel="stylesheet" type="text/css" href="/Content/css/style.css" />
<style type="text/css">
<!--
.STYLE1 {color: #FF3366}
-->
</style>


   <script src="JS/ajaxSel.js" type="text/javascript"></script>
   

<script type="text/javascript">

    function CartList() {
        startHttp1("/ajax/ajax.aspx?Type=CartList", "productList");
    }
    function deleteCart(ShoppingCartID) {
        var ok = confirm("确定不购买该产品吗?")
        if (!ok)
            return;

        startHttp1('/ajax/ajax.aspx?Type=deleteCart&ShoppingCartID=' + ShoppingCartID, "productList");
    }

    function UpdateProductNum(ShoppingCartID, Max, OldNum) {
        var Num = document.getElementById("btnProductNum" + ShoppingCartID).value;
        if (Num == "") {
            Num = 1;
        }
        var Nums = parseInt(Num);

        if (Nums == 0) {
            Nums = 1;

        }
        if (Nums > Max) {
            //            Nums = Max;
            //            alert("最多" + Max);

            document.getElementById("btnProductNum" + ShoppingCartID).value = OldNum;

            //            return;
        }
        else {
            if (OldNum <= 1) {
                document.getElementById("btnProductNum" + ShoppingCartID).value = OldNum;
                return;
            }
后面还有 119 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。