“<” in a text box in ASP.NET --> how to allow it?
问题 I have a textfield which displays a string which contains < and >. The code throws an error because of that. How can I allow the usage of those chars in my textfield? Thanks :) 回答1: Problem is that when this gets posted to server, it will not work, doesn't matter what you try. This is the ASP.NET XSS protection, which can be disabled like so: <%@ Page ... ValidateRequest="false" %> Trouble is, you'll have to be very careful validating all the postback yourself. Easier way is to escape all the