|
Rank: Member
Groups: Registered
Joined: 5/13/2014 Posts: 4
|
When I run the rapid spell check on the "Test spell check editor " the spell check works properly where as If I use bullet point in-front of "Test spell check editor" or If I do Indenting then I am getting the below error
"A potentially dangerous Request.Form value was detected from the client (textToCheck="<UL> <LI data-cke-e..."). ".
I have tried with the below code rapidSpellWeb1.ValidateRequestMode = System.Web.UI.ValidateRequestMode.Disabled;
and also tried setting [ValidateInput(false)] but still getting the same error.
Any help on this is really appreciated..!
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 10/20/2004 Posts: 456
|
Hi - thanks for posting. Sounds like you just need to set IgnoreXML to true so that html markup is ignored. Let me know how that goes. Dan Dan Wright
|
|
Rank: Member
Groups: Registered
Joined: 5/13/2014 Posts: 4
|
Hi Dan,
Thanks for the prompt reply.
Please find below the code in the popup.aspx..how can I set the IgnoreXML to true here?.
Keyoti.RapidSpell.RapidSpellWeb rapidSpellWeb1 = new Keyoti.RapidSpell.RapidSpellWeb(); rapidSpellWeb1.SSLFriendly = true; rapidSpellWeb1.Width = new Unit(100, UnitType.Percentage); rapidSpellWeb1.ValidateRequestMode = System.Web.UI.ValidateRequestMode.Disabled; Form1.Controls.Add(rapidSpellWeb1);
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 10/20/2004 Posts: 456
|
You will need to set the property from the RapidSpellWebLauncher control. An example can be found in the documentation. Here's a direct link to the page; http://keyoti.com/produc...d%20Party%20Controls%20(Html%20Text%20Boxes).htm Let me know if you need anything else. Dan Dan Wright
|
|
Rank: Member
Groups: Registered
Joined: 5/13/2014 Posts: 4
|
Dan,
Thanks for providing me the much useful link.
I have replaced requestValidationMode from 4.5 to 2.0 in web.config and spell check works perfect. My only question at this point is will my application breaks if I use 2.0 insetad of 4.5 version?.
Many Thanks!. Siva
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 10/20/2004 Posts: 456
|
Siva, It is slightly different but it's unlikely that your app is affected; http://msdn.microsoft.co...uestvalidationmode.aspx
quote: 4.0 (the default). The HttpRequest object internally sets a flag that indicates that request validation should be triggered whenever any HTTP request data is accessed. This guarantees that the request validation is triggered before data such as cookies and URLs are accessed during the request. The request validation settings of the pages element (if any) in the configuration file or of the @ Page directive in an individual page are ignored. 2.0. Request validation is enabled only for pages, not for all HTTP requests. In addition, the request validation settings of the pages element (if any) in the configuration file or of the @ Page directive in an individual page are used to determine which page requests to validate.
Dan Wright Dan Wright
|
|
Rank: Member
Groups: Registered
Joined: 5/13/2014 Posts: 4
|
Thanks Dan for your valuable info.
I have modified the requestValidationMode from 4.5 to 2.0 in web.config and my application is working as expected. I don't see any problems in it.
Siva
|
|