摘要:
优点:javascrip制作的购物车的加入,可以大大减少对服务器的消耗。(一)先制作购物介面<%@ Page Language="C#" AutoEventWireup="true" CodeFile="newshopcar1.aspx.cs" Inherits="newshopcar1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xht 阅读全文
posted @ 2012-05-28 21:59
南南的博客
阅读(382)
评论(0)
推荐(0)
摘要:
<html><head> <title>title</title><script type="text/javascript"> function delIndex(obj) { var rowIndex = obj.parentNode.parentNode.rowIndex;//获得行下标alert(rowIndex); var tb = document.getElementById("tb"); tb.deleteRow(rowIndex);//删除当前行 add(rowIndex);/ 阅读全文
posted @ 2012-05-28 21:28
南南的博客
阅读(1054)
评论(0)
推荐(0)
摘要:
(1)首先,介绍一下javascript操作cookie的基础//去除空格,回车String.prototype.Trim = function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); } //设置Cookiefunction setCookie(c_name, c_value,expiredays){ var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie = c_name + "=" + 阅读全文
posted @ 2012-05-28 17:17
南南的博客
阅读(253)
评论(0)
推荐(0)
摘要:
(一)购物车全选的实现其实没什么意义呀,只是为展示一个全选的实现,直接清空,请看(二)实现下清空购物车先加个[全选]按钮<div> <asp:LinkButton ID="btn_checkall" runat="server" onclick="btn_checkall_Click">全选</asp:LinkButton> </div>protected void btn_checkall_Click(object sender, EventArgs e) { if (dt2.Rows 阅读全文
posted @ 2012-05-28 17:03
南南的博客
阅读(358)
评论(0)
推荐(0)
摘要:
缺点,即使使用全局不缓存,仍然后以使用IE中的返回按钮(1)添加Global.asax,在其中加入以下内容,设置全局不缓存protected void Application_BeginRequest(Object sender, EventArgs e){ HttpContext.Current.Response.Cache.SetNoStore();}(2)制作产品销售页<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default8.aspx.cs" Inhe 阅读全文
posted @ 2012-05-28 16:48
南南的博客
阅读(1399)
评论(0)
推荐(2)
浙公网安备 33010602011771号