随笔分类 -  web

asp.net 中对cookie的中文编码操作
摘要:写入时:HttpCookie cookie = new HttpCookie("cookie1");cookie.Value = Server.UrlEncode(strValue);Response.Cookies.Add(cookie); 读出时:string result = Server.UrlDecode(Request.Cookies["cookie1"].Value) 阅读全文

posted @ 2006-09-25 17:00 林晓可 阅读(940) 评论(1) 推荐(0)

(c#)发送文件下载
摘要:1 Response.ClearContent(); 2 Response.ClearHeaders(); 3 Response.ContentType = contentType; 4 //Response.ContentEncoding = System.Text.Encoding.UTF8; 5 //Response... 阅读全文

posted @ 2006-09-25 11:26 林晓可 阅读(977) 评论(2) 推荐(0)

javascript中取得queryString值
摘要:function GetQueryValue(searchUrl,queryStringName) { /**//*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ CopyRight: 网络有限公司 Joysos.Com Desc... 阅读全文

posted @ 2006-09-25 11:17 林晓可 阅读(339) 评论(0) 推荐(0)

导航