findcontrol乱码
我在页面中使用下面2个语法取值
Label lb = Page.FindControl("lb" + model.ControlName) as Label;
TextBox tb = Page.FindControl("txt" + model.ControlName) as TextBox;
其中lb.text取值正常,tb.text如果有汉字就会变成乱码,请教各位大哥有没有办法解决。
备注:web.config中我使用的是<globalization requestEncoding="gb2312" responseEncoding="gb2312"/>,这个不能修改,因为我在界面上使用了一些汉字效果。