When I put in a string like abc<def>ghi
in my text box, when I reach the code behind, the textbox.Text has become abcghi
, so <def>
got removed.
There are no Attributes on the textbox.
Does anyone know if this is default behavior, or if this is a .net setting in my config?
I have never seen this before.
<asp:TextBox ID="_user" runat="server" MaxLength="100" Width="150px"></asp:TextBox>
foreach (char c in _user.Text.ToCharArray())
if (invalidChars.Contains(c))
return false;