2009年9月15日

获取网络流

摘要: /// /// 获取源代码 /// /// /// /// public static string GetPage(string url, Encoding encoding) { ... 阅读全文

posted @ 2009-09-15 13:13 画一个圆圈 阅读(108) 评论(0) 推荐(0) 编辑

文件转换为流,流通过字节转换为文件

摘要: StreamReader sr = new StreamReader(Server.MapPath("~/images/LYF.jpg")); byte[] bytes=new byte[sr.BaseStream.Length]; sr.BaseStream.Read(bytes, 0,(i... 阅读全文

posted @ 2009-09-15 12:58 画一个圆圈 阅读(198) 评论(0) 推荐(0) 编辑

HttpContext.current中的applicationstate的运用

摘要: 当我在一个WEB应用程序中, Application.Add("lxx", "lxx");在其它页面也能访问得到它。这是不是全局变量呢,应该是的 阅读全文

posted @ 2009-09-15 10:10 画一个圆圈 阅读(132) 评论(0) 推荐(0) 编辑

HttpContext.current.request[""]

摘要: protected void Page_Load(object sender, EventArgs e) { this.Button1.Command+=new CommandEventHandler(Button1_Command); Application.Add("lxx", "lxx"... 阅读全文

posted @ 2009-09-15 09:53 画一个圆圈 阅读(212) 评论(0) 推荐(0) 编辑

导航