您的位置:首页 > 其它

关于POST网页参数接收返回值

2011-12-05 17:53 316 查看
接收aspx页面

网页很好写,就是接收参数,然后根据参数进行数据操作,返回值的时候需要注意的就是输入的汉字有可能遇到乱码

HttpContext.Current.Response.Clear()
HttpContext.Current.Response.Buffer = True
HttpContext.Current.Response.Charset = "GB2312" '//设置了类型为中文防止乱码的出现
HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312") ' //设置输出流为简体中文
HttpContext.Current.Response.Write("卡号不存在")
HttpContext.Current.Response.End()

经过查找解决。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: