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

Less than (<) in RadTextBox

1 Answer 168 Views
Input
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 16 Apr 2019, 08:16 PM

Having an issue with trying to handle the < character in a RadTextBox. I didn't want to have to resort to putting a RadEditor on the form as no other formatting is required.

 

The exception happens on your RadTextbox demo form, as seen in the attachment.

 

Can this be handled elegantly w/o blowing up the page?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 Apr 2019, 01:14 PM
Hi Mike,

This is an ASP.NET form submit validation mechanism so you'll experience the same error even if you replace RadTextBox with a regular asp:TextBox

A potentially dangerous Request.Form value was detected from the client (TextBox3_ClientState="...ionText":"<span","valueAsStrin...").

The solution is to:

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Input
Asked by
Mike
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or