A
AFN
I have a form with 15 fields. I want users to be able to enter "<" and ">"
characters into 1 of those fields without IIS catching it and disallowing
the whole page. I did some reading and I *think* that means I MUST set
ValidateRequest=False. So, two questions:
1) Do I have to then pass the results of every one of those 15 fields into
HtmlEncode? like strAfter = HtmlEncode(txtField1.text)? That's annoying
when I only want to allow 1 field to have the "<" ">" values.
2) What does the < character turn into when you do HtmlEncode? Generally.
I don't want it to turn into something like %20. If that is what it does,
then what other function can I use to test that my input is safe but still
keep it as < or >?
characters into 1 of those fields without IIS catching it and disallowing
the whole page. I did some reading and I *think* that means I MUST set
ValidateRequest=False. So, two questions:
1) Do I have to then pass the results of every one of those 15 fields into
HtmlEncode? like strAfter = HtmlEncode(txtField1.text)? That's annoying
when I only want to allow 1 field to have the "<" ">" values.
2) What does the < character turn into when you do HtmlEncode? Generally.
I don't want it to turn into something like %20. If that is what it does,
then what other function can I use to test that my input is safe but still
keep it as < or >?