关于页面乱码
做了一个页面 里面有一个
<input id= "txtRealName " runat= "server " maxlength= "10 " name= "txtRealName " class= "inputstyle " />
后台取值 txtRealName.Value
结果去出来的记过是乱码,请问是何故?
注;用了 <META http-equiv= "content-type " content= "text/html; charset=gb2312 ">
<globalization
requestEncoding= "gb2312 "
responseEncoding= "gb2312 "
/>
结果一样是乱码
------解决方案--------------------<globalization
requestEncoding= "utf8 "
responseEncoding= "utf8 "
/>
------解决方案--------------------把上面的也换成UTF-8 ,charset=gb2312
------解决方案--------------------存档的时候选择编码保存。选择UTF-8
------解决方案--------------------后台取值 txtRealName.Value
LZ如何取的?代码?