Note that there are some explanatory texts on larger screens.

plurals
  1. POSys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred
    primarykey
    data
    text
    <p>while trying to process some user input which contains characters such as &lt;.</p> <p>I do want to sanitize this input and allow it to be displayed and be XSS safe.</p> <p>I'm getting this ajax error even though I haven't reached the the vb code behind to clean up the input. </p> <p>Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500</p> <p>The input is controlled by a btnNoteSave which is a updatepanel trigger.</p> <pre><code> &lt;div style="width: 100%; float: left"&gt; &lt;div&gt; &lt;asp:Button ValidationGroup="valgroup1" ID="btnNoteSave" runat="server" Text="Save" class="ui-state-default ui-corner-all float-left ui-button" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;div style="width: 100%; float: left"&gt; &lt;asp:UpdatePanel ID="pnlNotes" runat="server"&gt; &lt;ContentTemplate&gt; &lt;div id="content_container" style="margin-top: 85px"&gt; &lt;asp:Label ID="lblNotes" runat="server"&gt;&lt;/asp:Label&gt; &lt;/div&gt; &lt;/ContentTemplate&gt; &lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ControlID="btnNoteSave" EventName="click" /&gt; &lt;/Triggers&gt; &lt;/asp:UpdatePanel&gt; &lt;/div&gt; </code></pre> <p>I've tried sanitizing my input in the code behind but I'm not even reaching that far. The error is an ajax error that throws when it reaches here.</p> <pre><code>Protected Sub btnNoteSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnNoteSave.Click .... newnote.Note = Server.HtmlEncode(txtNote.Text) .... End Sub </code></pre> <p>Any ideas how to get deal with these issues?</p> <p>Thanks,</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.
    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