Try Now
More in this section

Forums / Developing with Sitefinity / How to disable the page "validateRequest" ?

How to disable the page "validateRequest" ?

2 posts, 1 answered
  1. Bruno Michels
    Bruno Michels avatar
    125 posts
    16 Apr 2010
    29 Sep 2010
    Link to this post
    Is it possible to set validateRequest to false on a single page? How?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    29 Sep 2010
    Link to this post
    Hi Bruno Michels,

    It is not possible to set validateRequest for a single page. You could use an external ASP.NET web page which is located in your project and you will use with your form. This will allow you to set the validateRequest attribute of the @ Page directive.

    The page object in ASP.NET does not have ValidateRequest property and it is not possible to set it for our dynamic pages. The ValidateRequest is  set after the page is initialized. You could bypass validation for a specific ASP.NET Server control by setting the control's CausesValidation property to false .

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 1 answered