摘要: 1、cookie生成文件存放的位置:(某些文件可能被隐藏) C:\Users\zhangmengting(用户)\AppData\Roaming\Microsoft\Windows\Cookies2、cookie 的保存 HttpCookie cookie = new HttpCookie("... 阅读全文
posted @ 2015-06-12 09:44 Yida_婷婷 阅读(1264) 评论(0) 推荐(0) 编辑
摘要: DAl: #region 查询拼接 public DataView SelectAppend(string username, string sex, string permission) { string procedure = "exec dbo.zmt_procedure @usern... 阅读全文
posted @ 2015-06-11 15:51 Yida_婷婷 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 前台: 验证码: 看不清?换一张 前台js: function changeCode() { document.getElementById('ValidateButton').src = document.getElementById('ValidateButton').src + '?'... 阅读全文
posted @ 2015-06-11 11:04 Yida_婷婷 阅读(235) 评论(0) 推荐(0) 编辑
摘要: SQLHelper的数据库配置: 阅读全文
posted @ 2015-06-10 09:06 Yida_婷婷 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 大家都知道在App_Code里的类,我们在引用它的时候是不需要引入命名空间的。那么为什么还是不能直接调用呢?2问题出在它的生成操作的方式上。具体解决方法如下:3我们首先找到不能引用的类文件,如下:4我们右击它,如下:5我们点击属性,如下:6我们把“生成操作”属性值改为“编译”,如下:7然后我们会发现... 阅读全文
posted @ 2015-06-02 16:43 Yida_婷婷 阅读(302) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/sufei/archive/2010/03/27/1698590.html 阅读全文
posted @ 2015-06-02 13:26 Yida_婷婷 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 后台:if (!String.IsNullOrEmpty(Request["action"]) && Request["action"] == "ajax") { string username = Request["z_username"]; string permission = Request... 阅读全文
posted @ 2015-06-02 11:07 Yida_婷婷 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1、创建唯一标识: create table zz(id uniqueidentifier,name nvarchar(10) ); insert into zz(name) values('zmt'); select newid() from zz;2、区别: ... 阅读全文
posted @ 2015-05-12 08:52 Yida_婷婷 阅读(152) 评论(0) 推荐(0) 编辑
摘要: //创建存储过程alter procedure zmt_firstpro@condition nvarchar(1000)asbegin--set nocount ondeclare @strsql nvarchar(1000)set @strsql = 'select username from ... 阅读全文
posted @ 2015-05-05 14:37 Yida_婷婷 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1、dateadd(datepart,number,date):在向指定日期加上一段时间的基础上,返回新的 datetime 值 注:datepart:year,quarter(季度),month,dayofyear,day,week,hour,minute,second,millisecond,... 阅读全文
posted @ 2015-04-27 14:53 Yida_婷婷 阅读(635) 评论(0) 推荐(0) 编辑