会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
李大大
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2016年8月17日
MVC验证session是否过期,在每个action执行之前验证
摘要: protected override void OnActionExecuting(ActionExecutingContext filterContext) { base.OnActionExecuting(filterContext); if (Session["wx_s_user"] == n
阅读全文
posted @ 2016-08-17 13:41 小A爱吧
阅读(816)
评论(0)
推荐(0)
2016年8月8日
int类型的正负数转换
摘要: int aid = -this.id; 不能直接转 必须先赋值给一个变量 int c = this.id; int a = c * (-1); this.id = a;
阅读全文
posted @ 2016-08-08 15:51 小A爱吧
阅读(2956)
评论(0)
推荐(0)
2016年8月5日
表设置了自增后往里面插入不自增的id时的处理方法
摘要: SET IDENTITY_INSERT 表名 ON 中间写insert语句,但是这里必须把列名更上 SET IDENTITY_INSERT 表名 OFF
阅读全文
posted @ 2016-08-05 15:51 小A爱吧
阅读(381)
评论(0)
推荐(0)
关于当传过来的值转换成string类型报错的问题
摘要: 有时候直接写 string str=request.param["str"].tostring;会报错,是因为接受到的值可能是空的 这个时候就可以这样写 string _action = string.Format("{0}", Request.QueryString["str"]); 这样写就不会
阅读全文
posted @ 2016-08-05 11:44 小A爱吧
阅读(294)
评论(0)
推荐(0)
2016年8月1日
网站登录时记住密码
摘要: UI层一个登录框,一个密码框,一个验证码框 ,然后一个记住密码 <div class="banner"> <div class="login-aside"> <div id="o-box-up" style="height:400px"></div> <div id="o-box-down" sty
阅读全文
posted @ 2016-08-01 11:17 小A爱吧
阅读(520)
评论(0)
推荐(0)
2016年7月28日
奔跑的小马 动画效果
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>HTML5/CSS3奔跑动画DEMO演示</title> <style> html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h
阅读全文
posted @ 2016-07-28 17:15 小A爱吧
阅读(406)
评论(0)
推荐(0)
2016年7月22日
日期控件jsdate用法注意事项
摘要: <!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.o
阅读全文
posted @ 2016-07-22 15:27 小A爱吧
阅读(430)
评论(0)
推荐(0)
2016年7月19日
百度地图
摘要: <!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.o
阅读全文
posted @ 2016-07-19 14:58 小A爱吧
阅读(140)
评论(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.o
阅读全文
posted @ 2016-07-19 14:57 小A爱吧
阅读(509)
评论(0)
推荐(0)
H5播放器
摘要: <!DOCTYPE html> <html> <body> <div style="text-align:center"> <button onclick="playPause()">播放/暂停</button> <button onclick="makeBig()">放大</button> <bu
阅读全文
posted @ 2016-07-19 14:23 小A爱吧
阅读(676)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告