上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 42 下一页
摘要: package mydemo.mycom.demo2.service;import org.apache.http.HttpResponse;import org.apache.http.NameValuePair;import org.apache.http.client.HttpClient;i... 阅读全文
posted @ 2015-07-28 10:29 小白ACE 阅读(1313) 评论(0) 推荐(0)
摘要: 一、使用MVC中的Filter来对Session进行验证(1)方法1:public class MyAuthorizeAttribute : FilterAttribute, IAuthorizationFilter{ public void OnAuthorization(Authori... 阅读全文
posted @ 2015-06-19 10:40 小白ACE 阅读(349) 评论(0) 推荐(0)
摘要: 最近在ASP.NET MVC项目中碰到这样的情况:在一个controller中设置了Session,但在另一个controller的构造函数中无法获取该Session,会报"System.NullReferenceException"错误。之所以这样做是因为希望在controller构造函数中获取S... 阅读全文
posted @ 2015-06-19 10:36 小白ACE 阅读(2478) 评论(2) 推荐(1)
摘要: 解决方式:sp_change_users_login 'update_one', '123456', '123456'update_one是存储过程的参数,表示只处理一个用户,前一个“123456”是“用户”,后一个“123456”是“登录”,以上这个SQL表示将服务器登录“123456”与Demo... 阅读全文
posted @ 2015-06-11 15:59 小白ACE 阅读(317) 评论(0) 推荐(0)
摘要: //新方法 entity framework 时间操作 query.Where(c => System.Data.Entity.DbFunctions.DiffDays(DateTime.Now, c.AddTime) == 0).Count();//比较天数 //当天用户//方法已经过时 var useractiveentity = db.UserActive.Where(u => u.Us... 阅读全文
posted @ 2015-06-10 08:37 小白ACE 阅读(1136) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Security.Cryptography;using System.Web;namespace GiftWeb.Util{ public ... 阅读全文
posted @ 2015-06-02 11:46 小白ACE 阅读(2035) 评论(0) 推荐(0)
摘要: //url加密与解密string res1 = HttpUtility.UrlEncode("7Z2K5Lgk/iI=");//值是7Z2K5Lgk%2fiI%3dstring res2 = HttpUtility.UrlEncode(res1);//值是: 7Z2K5Lgk%252fiI%253d... 阅读全文
posted @ 2015-06-01 21:17 小白ACE 阅读(237) 评论(0) 推荐(0)
摘要: 对于SQL Server 2008,有几个地方是要注意的,比方在还原数据库时,不像2000里边将数据库和文件区分的很细,统一均为文件,这就使还原的数据库文件制定为. bak。那么想还原2000的数据库(备份数据库文件,无后缀名的),就需要自己手工选择。 阅读全文
posted @ 2015-05-29 14:39 小白ACE 阅读(270) 评论(0) 推荐(0)
摘要: 1.执行无参数sql:string sql = "select * from IntegralInfo where convert(nvarchar,getdate(),23)='{0}' and status=1 and userinfoid='{1}'";sql = string.Format(... 阅读全文
posted @ 2015-05-25 12:25 小白ACE 阅读(2954) 评论(0) 推荐(0)
摘要: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_pa 阅读全文
posted @ 2015-05-23 18:11 小白ACE 阅读(153) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 42 下一页