摘要: Login.html模板页: 用户名: 密码: Login.ashx:using System;using System.Collections.Generic;using System.Linq;using System.Web;u... 阅读全文
posted @ 2015-06-03 10:22 t800 阅读(116) 评论(0) 推荐(0)
摘要: 第 3 节: 3-Cookie的细节问题11、cookie是和浏览器相关的,不同的浏览器cookie信息是不能公用的~!!2、浏览器开了。隐身模式的话,cookie信息也是读取不到的~!!3、手动的将浏览器中的cookie信息删除后,也是读取不到cookie信息~!!设置cookie信息:Cooki... 阅读全文
posted @ 2015-06-02 14:51 t800 阅读(99) 评论(0) 推荐(0)
摘要: 服务器端写cookie: public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/html"; //1、调用C... 阅读全文
posted @ 2015-06-02 14:47 t800 阅读(775) 评论(0) 推荐(0)
摘要: 一个案例验证:MomeryTest.html MomeryTest.ashxusing System;using System.Collections.Generic;using System.Linq;usin... 阅读全文
posted @ 2015-06-02 14:19 t800 阅读(125) 评论(0) 推荐(0)
摘要: 1、Combine(Path1,fileName)自动判断Path1后边是否有反斜线,没有就自动添加上;2、Server.MapPath里不用考虑,正反斜线的问题,。net引擎会自动处理这个问题。。(路径中的斜线问题) 阅读全文
posted @ 2015-06-02 14:08 t800 阅读(178) 评论(0) 推荐(0)
摘要: 上传页面: 处理页面:using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Web;namespace Web1{... 阅读全文
posted @ 2015-06-02 14:02 t800 阅读(336) 评论(0) 推荐(0)
摘要: 1、命名空间和文件夹的名字可以不一样吗?答案是可以的。编译时可以通过的,你也可以设置命名空间的名字与文件夹的名字不一致;(面试问题)2、类中的成员字段int类型,privateinti;//每次初始化完毕后都是0;3、地址栏每次请求。IncDemo.ashx程序,都会将.ashx中的类重新new一个... 阅读全文
posted @ 2015-06-02 13:54 t800 阅读(97) 评论(0) 推荐(0)
摘要: 1、使用字符串拼接的不好的地方:using System;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Web;namespa... 阅读全文
posted @ 2015-06-01 19:34 t800 阅读(266) 评论(0) 推荐(0)
摘要: 1、使用字符串拼接的不好的地方:using System;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Web;namespa... 阅读全文
posted @ 2015-06-01 19:30 t800 阅读(268) 评论(0) 推荐(0)
摘要: 1、先在数据库实创建好表,并写下联合查询语句selecta.Name,a.Address,b.NamefromCompanysaleftjoinManagersbona.ManagerId=b.id;2、如下图:3、完成公司列表展示的html页面 新增 ... 阅读全文
posted @ 2015-06-01 19:16 t800 阅读(232) 评论(0) 推荐(0)