Click here to Skip to main content
12,302,307 members (30,823 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET Ajax
Hi All,

I am using Asp.net Web application with Ajax HTML Editor.

How to upload Image in Html Editor.

plz help

Regards

Mukesh
Posted 26-Dec-12 20:03pm
Edited 26-Dec-12 23:35pm
v2
Comments
AANIL DHAKAD 20-Jun-13 2:14am
   
I am also facing same problem with Ajax tool HTML Editor
Have any solution Please Help
mukesh_panth 20-Jun-13 7:35am
   
use client side script ......
<script type="text/javascript">
function addIMAGE_LOGO()
{
//debugger;
var editor = $find("Editor2");
var editPanel = editor.get_editPanel();
var designPanel = editPanel.get_activePanel();
designPanel._saveContent();
designPanel.insertHTML('<img alt="" src="Images/Logo.jpg" style="width: 40px" />');
}
</script>

and use this server side code in page_load event....

btnAddImage.Attributes.Add("onclick", "addIMAGE_LOGO()");

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160530.1 | Last Updated 27 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100