I have a web application which has a TextBox:
<asp:TextBox runat="server" CssClass="form-control monospace" ID="SKEDescriptionTextBox" TextMode="MultiLine" Rows="10" Text='<%# Bind("SKEDescription")%>' />
It is bound to a field SKEDescription which is derived from an old mainframe application and is simply text - with no formatting. (old green screen stuff)
Within the web app the user can change this TextBox and the resultant text gets sent back to the mainframe - after a large amount of code to strip formatting and other characters which will upset the mainframe.
However if the user enters any text which even looks like html (e.g. <xxx>) then the code fails even before it enters the checking code. This was solved by adding
ValidateRequestMode="Disabled"
to the TextBox asp: line.
So now the user can enter <xxx> and it is successfully sent to the mainframe,
BUT when the screen is redisplayed all the new text is displayed EXCEPT <xxx> - it is not there.
Is there another method/property of TextBox that controls what is displayed from the Bind source rather than the user input?