#region 添加购物车 public void GetShoppingCart(int skuId, int quanlity) { HttpCookie cookie = HttpContext.Current.Request.Cookies["myCart"];//获取coo...
分类:
Web程序 时间:
2014-08-03 17:58:15
阅读次数:
309
一、PostgreSQL中可以直接对时间进行加减运算: 查询系统当前时间: select?now(); 或者 select?current_timestamp; SELECT now()::timestamp + ‘1 year‘;? --当前时间加1年 SELECT now()::timestamp + ‘1 mon...
分类:
数据库 时间:
2014-08-02 13:02:23
阅读次数:
275
public static void DownloadFile(string strFilePath) { FileInfo download = new FileInfo(strFilePath); HttpContext.Current....
分类:
其他好文 时间:
2014-08-01 13:10:31
阅读次数:
164
方法一:Json方法 通过对查询出来的结果进行比较 使用函数CompareTo() //Json方法 HttpContext.Current.Response.ContentType = "application/json"; Dat...
分类:
其他好文 时间:
2014-08-01 13:04:41
阅读次数:
216
不多说,直接上脚本。
# processbar
processbar() {
local current=$1; local total=$2;
local maxlen=80; local barlen=66; local perclen=14;
local format="%-${barlen}s%$((maxlen-barlen))s"
local perc="[$cu...
分类:
其他好文 时间:
2014-08-01 10:53:01
阅读次数:
257
Firetruck The Center City fire department collaborates with the transportation department to maintain maps of the city which reflects the current stat...
分类:
其他好文 时间:
2014-08-01 09:13:31
阅读次数:
223
SPContext.Current.Web.Lists["UserInfo"]:获取网站的List,名称是:UserInfo userlist.AddItem():添加数据到List里 user.Update():将数据保存到List里,更新的List里的数据 GetItemById:获取当前行的....
分类:
其他好文 时间:
2014-07-31 20:30:07
阅读次数:
254
Site9527EntitiesDataContext (重要的类):连接实体与网站List操作SPContext.Current.Web.Url:获取当前操作的页面FirstOrDefault:使用时一定要先引用(Using System.Linq;)dataContext.SubmitChang...
分类:
其他好文 时间:
2014-07-31 19:57:37
阅读次数:
261
一、准备工作Node.js下载地址 http://nodejs.org/download/Current version:v0.10.29二、平台的选择 2.1 Windows平台 根据自己平台是32位的还是64位,选择下载不同的.msi安装程序。 安装很简单,只要一步步点下去就完成安...
分类:
Web程序 时间:
2014-07-31 19:43:07
阅读次数:
305
“我在类库中调用System.Web.HttpContext.Current.Session, 他是null值,有没有办法取到这个值? 但是我在另一个类库中就可以取到; 两个类都是非page类, session里面肯定是非空的 ”,网上有人在问这个问题,我后来在编程的时候也碰到了。 我的情况是...
分类:
Web程序 时间:
2014-07-31 16:36:16
阅读次数:
244