上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: Css样式table { border-bottom:1px solid #ccc; border-left:1px solid #ccc; margin-bottom:14px; border-collapse:collapse;}td { border-top:1px solid #ccc; border-right:1px solid #ccc; line-height:26px; padding:0 3px 0 5px; }td.label { background:#f1f1f1; color:#666; font-weight:700; }Body代码<table>&l 阅读全文
posted @ 2012-05-08 15:48 cn_king 阅读(2097) 评论(0) 推荐(0) 编辑
摘要: <metahttp-equiv="X-UA-Compatible"content="IE=edge"/> 阅读全文
posted @ 2012-04-12 12:04 cn_king 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 这个问题搞了好一会。在AppSetting中添加值,在取的时间判断一下。不然因为配置错了导致程序出错,很坑爹 的 阅读全文
posted @ 2012-04-11 17:38 cn_king 阅读(133) 评论(0) 推荐(0) 编辑
摘要: IIS的根节点->右侧“ISAPI和CGI限制”->把禁止的DotNet版本项设置为允许,即可 阅读全文
posted @ 2012-04-10 16:49 cn_king 阅读(184) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { Linq_DBDataCont.Linq_DBDataContext ctx = new Linq_DBDataCont.Linq_DBDataContext(); Linq_DBDataEnts.users us = new Linq_DBDataEnts.users(); us = ctx.users.FirstOrDefault(a => a.uType == "1"); if (us != null) { Console.WriteLine(us.uName); } else { Consol 阅读全文
posted @ 2012-03-18 23:56 cn_king 阅读(147) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 记录操作日志 /// </summary> /// <param name="ActionType">动作类型</param> /// <param name="Key">操作数据关键字</param> /// <param name="IsSuccess">是否成功</param> /// <param name="Exception">异常信息</param> 阅读全文
posted @ 2012-03-06 11:35 cn_king 阅读(328) 评论(0) 推荐(0) 编辑
摘要: select res.id, res.title,res.stype,res.urls,decode(res.stype,1,'新闻',decode(res.stype,2,'帮助',decode(res.stype,3,'解决方案',decode(res.stype,4,'产品',decode(res.stype,5,'咨询'))))) as sstype from ( select id,1 as stype, SUBSTR(NEWSTITLE,0,25) as title ,'n_view.aspx? 阅读全文
posted @ 2012-02-23 17:56 cn_king 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Cookie不支持中文。Cookie在客户端使用,使用 base 64 编码,对中文的支持不好。//清除Cooike//取到Request的值var cc = Request.Cookies["Login_User"]; if (cc != null) {//修改过期时间 cc.Expires = DateTime.Now.AddDays(-1);//把Cooike添加到Response中去 Response.Cookies.Add(cc);//跳转到首页 Response.Redirect("~/default.aspx"); } 阅读全文
posted @ 2012-02-06 22:29 cn_king 阅读(177) 评论(0) 推荐(0) 编辑
摘要: function collect() { var ctrl = (navigator.userAgent.toLowerCase()).indexOf('mac') != -1 ? 'Command/Cmd' : 'CTRL'; try { if (document.all) { //IE类浏览器 try { window.external.toString(); //360浏览器不支持window.external,无法收藏 window.alert("国内开发的360浏览器等不支持主动加入收藏。\n您可以尝试通过浏览器菜单栏 或快捷 阅读全文
posted @ 2012-02-05 10:53 cn_king 阅读(1454) 评论(1) 推荐(0) 编辑
摘要: PHP代码:<?phpinclude 'SqlHelper.php';$ress = mysql_query("select dTitle from diarys");// where dCreateUser='".$name."'", $conn)or die('QueryError');$resFetch=mysql_fetch_array($ress);//数据和Json转换$js1= json_encode($resFetch);print "[";print $ 阅读全文
posted @ 2012-01-31 23:25 cn_king 阅读(3464) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页