Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Edited Unassigned: HTML Editior error when upload image which page consist of query string [27675]

$
0
0
Hi i am using AJAX ToolKit Htmleditor in my webpage. Please see my code
Below

```
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="True" EnableScriptGlobalization="True" EnableScriptLocalization="true"
ScriptMode="Release">


</asp:ToolkitScriptManager>
<asp:TextBox ID="txtcContent" runat="server"></asp:TextBox>
<asp:HtmlEditorExtender ID="htmlContent"
TargetControlID="txtcContent" OnImageUploadComplete="ajaxFileUpload_OnUploadComplete" Runat="server">

<Toolbar>
<ajaxToolkit:Undo />
<ajaxToolkit:Redo />
<ajaxToolkit:Bold />
<ajaxToolkit:Italic />
<ajaxToolkit:Underline />
<ajaxToolkit:StrikeThrough />
<ajaxToolkit:Subscript />
<ajaxToolkit:Superscript />
<ajaxToolkit:JustifyLeft />
<ajaxToolkit:JustifyCenter />
<ajaxToolkit:JustifyRight />
<ajaxToolkit:JustifyFull />
<ajaxToolkit:InsertOrderedList />
<ajaxToolkit:InsertUnorderedList />
<ajaxToolkit:CreateLink />
<ajaxToolkit:UnLink />
<ajaxToolkit:RemoveFormat />
<ajaxToolkit:SelectAll />
<ajaxToolkit:UnSelect />
<ajaxToolkit:Delete />
<ajaxToolkit:Cut />
<ajaxToolkit:Copy />
<ajaxToolkit:Paste />
<ajaxToolkit:BackgroundColorSelector />
<ajaxToolkit:ForeColorSelector />
<ajaxToolkit:FontNameSelector />
<ajaxToolkit:FontSizeSelector />
<ajaxToolkit:Indent />
<ajaxToolkit:Outdent />
<ajaxToolkit:InsertHorizontalRule />
<ajaxToolkit:HorizontalSeparator />
<ajaxToolkit:InsertImage />

</Toolbar>
</asp:HtmlEditorExtender>

```

I need to upload image but after uploaded I getting this error.
__ncaught Sys.ArgumentException: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON.
Parameter name: data__

After i googling this issue i found that this error occur because of my page consist of Query string.

Here is my page which using HTML eiditor
__../Module/CRM/News/NewsDetail.aspx?sessionToken=news_2005523695&selectID=382&selectChildID=383&type=news&pageAction=Add__


I follow this solution. (https://ajaxcontroltoolkit.codeplex.com/workitem/27149)
And rebuild the dll
(the last solution provided by nESbo)

```
I had this problem when page contains query string on load. This is the solution I got (for 2013 release of the control). Three functions should be changed:
Open AjaxFileUpload.Control.pre.js,
find "doneAndUploadNextFile" function and make a change:
original:
xhr.open("POST", "?contextKey="+ this._contextKey +"&done=1&guid=" + fileItem._id, true);
```

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>