700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > asp.net调用js代码乱码解决方法

asp.net调用js代码乱码解决方法

时间:2020-04-07 06:01:00

相关推荐

asp.net调用js代码乱码解决方法

方法:两个步骤

1.Aspx页面文件中加入

<META http-equiv="content-type" content="text/html; charset=gb2312">

2.在页面加载事件中加入下句:

Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。