Well, I changed my pattern, and I think I see the problem - and I could be wrong, but I think that it behaves as intended.
When you set the ReadOnly field to codebehind, ASP:TextBox seems unchanged even by JS. I made the changes and the change was reflected in JS and on the form, but the TextBox kept the original value of the text - unless I looked in the request. Shape like you.
I do not think this is a mistake. I think it is intentional so that something is completely blocked - only server-side reading, freezing, seems like the preferred choice.
Can I suggest something using hidden input fields and spaces or ASP:Labels (which effectively render as spaces) to give a display aspect that is not user-controlled?
Alternatively, if you have access to the JS library (for example, jQuery), you can set the CSS class in your text blocks (using CssClass="readonly" or something in this tag), and then use the selection process. to set up an attribute, for example (assuming jQuery, easily written in other languages):
$("input.readonly").attr("readonly","readonly");
This way you don’t rewrite most of your markup, and this is a quick JS solution.
source share