This is a migrated thread and some comments may be shown as answers.

Display dangerous Request.Form error to user

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Norman
Top achievements
Rank 1
Norman asked on 15 Apr 2011, 04:43 PM
Hi,

I have a rad grid that is using EditFormSettings with a FormTemplate and in Popup mode.  It is displaying a couple of items in the popup for editing purposes that are not already displayed in the grid.  When a user is typing in information into these areas, I want to inform the user of any HTML tags they may mistakenly enter. 

As it stands now, in testing, when HTML tags are entered into one of the text boxes and save is clicked, the form just brings back what was on the screen  at submission and I record a HttpRequestValidationException in my event log.  Clicking on the cancel button also exhibits this behavior as it also performs a postback and will not let me cancel the edit without removing the offensive tags.

When I debug the page through Visual Studio, I get this error message from the ScriptResource.axd: "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500".

I cannot turn off page validation.  Not an option.  What I need is some way to display a message to the user that the data they have entered is incorrect and that they need to correct it to continue.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 21 Apr 2011, 08:20 AM
Hi Norman,

As a starting point I suggest that you examine the following blog post:
Web Resources demystified: Part 3 (Troubleshooting)

Let us know whether this helps.

Kind regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Norman
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or