Introduction
In the previous topic, we discussed about configuring Web.config file to add an HttpHandler before using Aspose.Form control in your web applications. So, in this topic, we are not going to suggest you to make any other change to your Web.config file. This topic deals with configuring your web form so that all InfoPath forms (that contain RichText Control) may run properly using Aspose.Form.
Configuring Web Form for RichText Control
All web forms contain a Page directive that lies at the top of the ASP.NET page (.aspx). A Page directive contains some properties to configure the ASP.NET page. ValidateRequest is one of the properties supported by the Page directive. Aspose.Form supports loading InfoPath forms containing RichText controls. A RichText control allows users to enter rich text into it including HTML. By default, ValidateRequest property of Page directive is set to true that may stop Aspose.Form to process the RichText control data (that is HTML).
So, to allow Aspose.Form handle the data of RichText controls in InfoPath forms, you must set ValidateRequest property to false in an ASP.NET page as shown below:
<%@ Page language="c#"
Codebehind="Default.aspx.cs"
AutoEventWireup="false"
Inherits="Aspose.Form.Demo.General.Default"
ValidateRequest="false"%>