Note that there are some explanatory texts on larger screens.

plurals
  1. POInvalid Validation exception occuring on submit in ASP.NET app page
    primarykey
    data
    text
    <p>This is a completely out-of-the-box perspective on another question I've posted <a href="https://stackoverflow.com/questions/19428300/tinymce-not-posting-edited-value-even-after-triggersave-in-asp-net-app">here</a> in the thought that I may be attributing the problem to the wrong source (which is, in that question, related to TinyMCE). It occurred to me the problem may be more organic, and that I'm looking at it entirely incorrectly.</p> <p>An otherwise unremarkable page in a particular ASP.NET application includes a form with an ASP:TextBox control that is initialized to a particular value that includes HTML markup. The textbox is set for multiline operation and is rendered as an HTML textarea. The user changes that value and submits the page (via an appropriate button). Regardless of what the user types in the box, ASP.NET throws a validation exception on the basis <em>of the original value of the text box.</em></p> <p>Have tried setting EnableViewState on the control to false in case, somehow, the value being checked was coming out of the form's viewstate on postback. No luck.</p> <p>What mechanism would cause ASP.NET to see the <em>previous</em> value held in the textbox? Running the page in the debugger clearly shows the field containing the changed value right to the time the submit is called against the host form. </p> <p>Perhaps the solution or cause is obvious, and I'm just having a severe case of concerete-between-the ears, but I'm plainly not seeing it.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload