摘要: 1. GetClassData.html 1 2 3 4 5 6 39 40 41 44 45 View Code2. GetClassData.ashx 1 2 3 using System; 4 using System.Web; 5 using S... 阅读全文
posted @ 2014-11-13 13:09 叫我霍啊啊啊 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1. GetTime.html 1 2 3 4 5 6 49 50 51 52 53 54 View Code2. GetTime.ashx 1 2 3 using System; 4 using System.Web; 5 6 public ... 阅读全文
posted @ 2014-11-13 13:07 叫我霍啊啊啊 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 一.简介0. 页面的生命周期。1. WebForm后台页面类继承于Page类,Page类实现了IHttpHandler接口。2. 前台页面类继承于后台页面类。3. 先调用PageLoad方法,再调用Render方法生成html代码。二. 加密安全互联网没有绝对的安全,登录框内输入用户名和密码,在请求... 阅读全文
posted @ 2014-11-12 17:53 叫我霍啊啊啊 阅读(2304) 评论(0) 推荐(0) 编辑
摘要: 一. 内容1. Session池,键值对。2. Session也是context对象里的,Page类中封装,更方便访问。3. Session机制(1)SessionId用Cookie的方式发送到浏览器端。格式类似于,Set-Cookie:SessionId=101,Cookie以浏览器缓存方式存储,... 阅读全文
posted @ 2014-11-12 17:51 叫我霍啊啊啊 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 一. 内容1. 可以存放多个Cookie2. 浏览器不能发送Cookie失效时间给服务器3. 带path的Cookie(不光针对于页面,也包括css,js,图片等),用作权限控制4. Cookie.Domain域名限制,例如baidu.com(一级域名),mp3.baidu.com(二级域名),vi... 阅读全文
posted @ 2014-11-12 15:57 叫我霍啊啊啊 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 一. 内容1. Execute(服务器端包含)和Transfer(服务器端跳转)的比较。2. HtmlEncode。二. 源代码http://files.cnblogs.com/HuoAA/Server%E5%B1%9E%E6%80%A7.rar 阅读全文
posted @ 2014-11-12 14:36 叫我霍啊啊啊 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1 protected void Page_Load(object sender, EventArgs e) 2 { 3 //关闭缓冲区,输出会一个一个写出来(只有在火狐浏览器中才有效果)。 4 //Response.BufferOutput = false... 阅读全文
posted @ 2014-11-12 14:14 叫我霍啊啊啊 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 1. 前台 1 2 3 4 5 6 7 8 9 16 17 18 19 20 21 " />22 23 24 ... 阅读全文
posted @ 2014-11-12 12:14 叫我霍啊啊啊 阅读(386) 评论(0) 推荐(0) 编辑
摘要: http://files.cnblogs.com/HuoAA/Web%E7%AA%97%E4%BD%93%EF%BC%88WebForm%EF%BC%89%E7%9A%84%E5%88%A0%E9%99%A4%E5%92%8C%E4%BF%AE%E6%94%B9.rar 阅读全文
posted @ 2014-11-12 11:57 叫我霍啊啊啊 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 一. 源代码 1 2 3 using System; 4 using System.Web; 5 6 public class DownLoad : IHttpHandler { 7 8 public void ProcessRequest (HttpContext cont... 阅读全文
posted @ 2014-11-10 20:13 叫我霍啊啊啊 阅读(153) 评论(0) 推荐(0) 编辑