"Sys.WebForms.PageRequestManagerServerErrorException: status code: 500"

I am using the asp.net text box inside the ajax update panel. If I enter & # in the text box and click the "Save" button, it gives a javascript error

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

Please help me, why does this error appear?

enter image description here

+5
source share
2 answers

, , AsyncPostbackTrigger .

, script:

<script type="text/javascript" language="javascript">
    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
    function EndRequestHandler(sender, args){
        if (args.get_error() != undefined){
            args.set_errorHandled(true);
        }
    }
</script>

: http://forums.asp.net/t/1066976.aspx/9/10

-1

ASP.NET- ( & # ). HttpRequestValidationException - , 500 HTTP- UpdatePanel. , :

  • (HTML-) .
  • :

    <%@ Page ValidateRequest="false" %>

, , . , HttpUtility.HtmlEncode , XSS.

+7

All Articles