Ajax toolkit image does not load

I have one ajaxtoolkit file upload per page

<ajax:HtmlEditorExtender runat="server" ID="htmEditor" DisplaySourceTab="true" TargetControlID="txtWelcomenote" OnImageUploadComplete="htmEdtior_OnUploadComplete"> 

and the code is behind -

 protected void htmEdtior_OnUploadComplete(object sender, AjaxFileUploadEventArgs e) { // Generate file path string filePath = "~/Images/" + e.FileName; // Save uploaded file to the file system var ajaxFileUpload = (AjaxFileUpload)sender; ajaxFileUpload.SaveAs(MapPath(filePath)); // Update client with saved image path e.PostedUrl = Page.ResolveUrl(filePath); } 

And my question is: while I try to load an image, it does not load and this event also does not fire. and I am debugging also from this. I take an additional query string, for example contextkey = {DA8BEDC8-B952-4d5d-8CC2-59FE922E2923} What could be the problem ?? and what is the solution? Please help me.

+4
source share

All Articles