2012年6月19日

jquery获取当前请求页面URL

摘要: $.ajax({ type:"post", url:"../Common/txtAjax.ashx", data:{action:"SavePrice",proid:theid,scprice:thesc,b2cprice:theb2c,xjprice:thexj,xbprice:thexb,kaprice:theka,pfprice:thepf}, success:function(data){ if(data==1) { ... 阅读全文

posted @ 2012-06-19 15:13 ~~小麦 阅读(871) 评论(0) 推荐(0) 编辑

2012年6月14日

jquery取小数点后两拉

摘要: var price=$("#<%=btn.ClientID %>").val()*(1+0.03); alert(price.toFixed(2)); 阅读全文

posted @ 2012-06-14 15:53 ~~小麦 阅读(181) 评论(0) 推荐(0) 编辑

2012年6月13日

Winform日期格式验证(xxxx-xx-xx)

摘要: /// <summary> /// 日期格式判断 /// </summary> /// <param name="InputStr"></param> /// <returns></returns> public static bool ValidateDataTime(string InputStr) { if (InputStr != "") { if (Regex.IsMatch(InputStr.Trim(), @"^((((1[... 阅读全文

posted @ 2012-06-13 11:34 ~~小麦 阅读(338) 评论(1) 推荐(0) 编辑

2012年6月11日

missing } after property list 错误

摘要: Joson 符号编译问题:<option value=\"" + dr["ID"] + "\">" + dr["Name"] + "</option> 改成 <option value=\\\"" + dr["ID"] + "\\\">" + dr["Name"] + "</option> 就好了! 阅读全文

posted @ 2012-06-11 20:46 ~~小麦 阅读(337) 评论(0) 推荐(0) 编辑

2012年6月3日

Asp.net清除Cookie值(已验证有效)

摘要: HttpCookie cook = Request.Cookies["username"];cook.Expires = DateTime.Now.AddDays(-1);cook.Values.Clear();System.Web.HttpContext.Current.Response.Cookies.Set(cook); 阅读全文

posted @ 2012-06-03 22:17 ~~小麦 阅读(141) 评论(0) 推荐(0) 编辑

导航