1
When I enter information into the tinymce component and click on any button that submits the form has generated the error.
Error in Javascript runtime: Sys.WebForms.Pagerequestmanagerservererrorexception: An error has occurred unknown while processing the request on the server. The code of status returned from server was: 500
It seems to me that Asp.net is blocking the HTML of the component. I’m already using the Validaterequest="false".
My code
<%@ Page UICulture="auto" ValidateRequest="false"  Culture="auto" Language="C#" MasterPageFile="~/ius/MasterPage.master"
    AutoEventWireup="true" CodeFile="CadastroNormas.aspx.cs" Inherits="CadastroNormas"
    Title="Cadastro de Normas" AsyncTimeout="600" %>
 <asp:UpdatePanel ID="upnlArquivos" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
        <ContentTemplate>
           <span class="txtCampo">Texto da Norma:</span><br />
             <asp:TextBox ID="Spaw2" runat="server" TextMode="MultiLine" Rows="100"
                  Columns="100"></asp:TextBox>
                 <br />
                 <br />
              </ContentTemplate>                           
             </asp:UpdatePanel>
           tinyMCE.init(
           {
               mode: "specific_textareas",
               editor_selector: "mceEditor",
               height: "400",
               theme: "modern",
               entity_encoding: "raw",
               content_css: "../estilo.css",
               //Hacks para manter a formatação vinda do word
               forced_root_block: false,
               paste_auto_cleanup_on_paste: false,
               paste_text_use_dialog: true,
               paste_force_cleanup_paste: false,
               paste_remove_spans: false,
               paste_retain_style_properties: "margin, padding, width, height, font-size, font-weight, font-family, color, text-align, ul, ol, li, text-decoration, border, background, float, display"
           });

I am putting Validaterequest="false" in the same Page directive. My problem that the click wind does not call my aspx.Cs
– Marconi
Complete your question with more code. As it stands, only this can be inferred.
– Vinícius Gobbo A. de Oliveira
<httpRuntime requestValidationMode="2.0"/> I put this in my code and it worked. Could you explain why? Thank you.
– Marconi
I supplemented my answer.
– Vinícius Gobbo A. de Oliveira
Thank you for the reply.
– Marconi
do you think it’s best to change the question so it gets more Generic? Type. Server-side validation with HTML text components.
– Marconi
I think it doesn’t matter, because both the Google search and the OS search already consider the text of the question.
– Vinícius Gobbo A. de Oliveira