上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 37 下一页
摘要: 一、下载Memercached For Windows 二、安装步骤 1、解压到指定目录,如:C:\Memcached\memcached-win32-1.4.4-14(在本机[64位操作系统]装过win64-1.4.4版本,安装成功,也能看到命令和状态,但无法存取,32位的没问题,可能和自己引用的 阅读全文
posted @ 2012-09-26 13:59 流失的痕迹 阅读(591) 评论(0) 推荐(0)
摘要: 1.jQuery.validate验证:<inputtype="file"id="avatar"name="avatar"class="{validate:{required:true,accept:true}}"/> accept接受的是:image(png,jpg,jpeg,gif) <inputtype="file"id="cv"name="cv"class="{validate:{required:true,accept 阅读全文
posted @ 2012-09-25 10:44 流失的痕迹 阅读(353) 评论(0) 推荐(0)
摘要: 1.枚举2.获取枚举描述/// /// 获取对象描述信息/// /// /// public static string GetDescription(this object input){ if (input == null) return string.Empty; Type enumType = input.GetType(); if (!enumType.IsEnum) { return string.Empty;}var name = Enum.GetName(enumType, Convert.ToInt32(input)); if (name == null... 阅读全文
posted @ 2012-09-13 09:27 流失的痕迹 阅读(284) 评论(0) 推荐(0)
摘要: 1.ModelState.AddModelError("ServerMessage", MessageHelper.Instance.GetMessage(code));@Html.ValidationMessage("ServerMessage")2.private Field<DateTime?> _ExpiredDate = new Field<DateTime?>();如果是底层返回的数据,则应该判断_ExpiredDate == null如果你是new, 则判断_ExpiredDate.value == null此类型前 阅读全文
posted @ 2012-09-11 16:22 流失的痕迹 阅读(153) 评论(0) 推荐(0)
摘要: 1.分页查询select * from (select rownum no, e.* from (select * from emp order by sal desc) e where rownum<=5 ) where no>=3select * from (select rownum no,e.* from (select * from emp order by sal desc) e) where no>=3 and no<=52.存储过程a.范例一create or replace procedure bp_sp_product_insert( v_produ 阅读全文
posted @ 2012-08-31 11:17 流失的痕迹 阅读(299) 评论(0) 推荐(0)
摘要: <!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- 阅读全文
posted @ 2012-08-24 09:55 流失的痕迹 阅读(2096) 评论(0) 推荐(0)
摘要: 示例:http://www.cnblogs.com/Denny_Yang/archive/2011/04/20/2021955.html需要被转义的字符:【$,(,),*,+,.,[,],?,/,\,^,{,},|】一、 特殊字符 注释 $ 匹配输入字符串结尾的位置。 若要匹配 $ 字符本身,请使用... 阅读全文
posted @ 2012-07-17 09:38 流失的痕迹 阅读(237) 评论(0) 推荐(0)
摘要: 1,下拉框: var cc1 = $(".formc select[@name='country'] option[@selected]").text(); //得到下拉菜单的选中项的文本(注意中间有空格) var cc2 = $('.formc select[@name="country"]').val(); //得到下拉菜单的选中项的值 var cc3 = $('.formc select[@name="country"]').attr("id"); //得到下拉 阅读全文
posted @ 2012-07-08 17:05 流失的痕迹 阅读(229) 评论(0) 推荐(0)
摘要: ASP.net后台获取当前页面的文件名System.IO.Path.GetFileName(Request.Path).ToString();获取当前页面文件名,参数,域名等方法假设当前页完整地址是:http://www.test.com/aaa/bbb.aspx?id=5&name=kelli"http://"是协议名"www.test.com"是域名"aaa"是虚拟目录名"bbb.aspx"是页面名(文件名)"id=5&name=kelli"是参数【1】获取 完整url (协 阅读全文
posted @ 2012-07-04 15:32 流失的痕迹 阅读(5575) 评论(0) 推荐(0)
摘要: 在web开发中,经常会用到iframe,难免会碰到需要在父窗口中使用iframe中的元素、或者在iframe框架中使用父窗口的元素js在父窗口中获取iframe中的元素1、格式:window.frames["iframe的name值"].document.getElementByIdx_x("iframe中控件的ID").click();实例:window.frames["ifm"].document.getElementByIdx_x("btnOk").click();2、格式:var obj=document. 阅读全文
posted @ 2012-06-19 10:36 流失的痕迹 阅读(2662) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 37 下一页