摘要: Response.Charset ASP.NET 中示例: CodePage 告诉 IIS 按什么编码来读取 QueryString,按什么编码转换数据库中的内容……Response.ContentEncoding获取或设置输出流的 HTTP 字符集。Response.Charset获取或设置输出流的 HTTP 字符集。微软对 ContentEncoding、Charset 的解释是一字不差,其实可以这样理解:ContentEncoding 是标识这个内容是什么编码的,而 Charset 是告诉客户端怎么显示的。我们可以做一个实验来理解:实验1.Response.ContentEncodi.. 阅读全文
posted @ 2013-07-19 15:57 returnKing 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1. //服务器端rendercontrol生成word文档 #region //HttpContext.Current.Response.Clear(); //HttpContext.Current.Response.Charset = "UTF-8"; //HttpContext.Current.Response.AppendHeader("Content-Disposition","attachment;filename=导出文档.doc"); //HttpContext.Current.Response.ContentEnco 阅读全文
posted @ 2013-07-19 15:47 returnKing 阅读(233) 评论(0) 推荐(0) 编辑
摘要: function areaword(value) { var wd = new ActiveXObject("Word.Application"); var doc = wd.Documents.Add("", 0, 1); var range = doc.Range(0, 1); var sel = document.body.createTextRange(); sel.moveToElementText(value); sel.select(); sel.execCommand("Copy"); range.Paste(); w 阅读全文
posted @ 2013-07-19 11:31 returnKing 阅读(263) 评论(0) 推荐(0) 编辑
摘要: ASP.NET中的post和get请求操作主要是为了测试一下当post请求中有get参数的时候,服务器端是如何处理这两种不同的参数的。是一起当post参数处理,还是分开处理。客户端post_test.html Post_Get Test 服务器端 Default.aspx 服务器端Default.aspx.csusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.U... 阅读全文
posted @ 2013-07-19 10:23 returnKing 阅读(277) 评论(0) 推荐(0) 编辑