Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Expert,

My Website is in .net platform.

And my admin panel is hacked twice.Hackers hacked only html pages from fckeditor.

Now i am working on Ajax HtmlEditorExtender for news uploading.

But image uploading is not working.And onimageuploadcomplete is not firing.

Here is my code :

XML
<asp1:HtmlEditorExtender runat="server"TargetControlID="txtBox1" DisplaySourceTab="true" ID="s1" onimageuploadcomplete="s1_ImageUploadComplete">
          <Toolbar>
               <asp1:InsertImage />
               </Toolbar>
          </asp1:HtmlEditorExtender>


C#
protected void s1_ImageUploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
   {
       try
       {
           String fullpath = Server.MapPath("~/Styles/") + e.FileName;
           s1.AjaxFileUpload.SaveAs(fullpath);
           e.PostedUrl = Page.ResolveUrl(fullpath);
       }
       catch (Exception ex)
       {
       }
   }


Please Help me.

Thanks in adv. & sorry for poor english.
Posted

1 solution

Hi you got answer ?
If yes please write here you result code.
Thanks.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900