1. 在Silverlight plug-in上设置 或使用代码 Application.Current.Host.Settings. EnableGPUAcceleration= True; 2.在类型为UIElement的控件上设置 CacheMode = "BitmapCache" - 所.....
分类:
Web程序 时间:
2014-08-04 14:01:27
阅读次数:
236
#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