Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Spell check error. - RapidSpell Web ASP.NET - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
SivaN
#1 Posted : Tuesday, May 13, 2014 5:02:57 PM
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..!
Dan
#2 Posted : Tuesday, May 13, 2014 5:24:52 PM
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
SivaN
#3 Posted : Tuesday, May 13, 2014 6:47:33 PM
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);
Dan
#4 Posted : Wednesday, May 14, 2014 10:25:55 AM
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
SivaN
#5 Posted : Wednesday, May 14, 2014 1:27:27 PM
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
Dan
#6 Posted : Wednesday, May 14, 2014 1:51:04 PM
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
SivaN
#7 Posted : Tuesday, May 20, 2014 1:40:31 PM
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
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.