runat="server" 控件的 Text、Value 属性需要 HTMLEncode 转码吗?
不用,因为会自动转换。
比如:TextBox1.Text = "<>"; 就可以了。
不需要:TextBox1.Text = HttpUtility.HtmlEncode("<>");。
创建于2005年 渝ICP备05010272号-1
电邮:cftea@126.com