Click here to Skip to main content
Rate this: bad
good
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 at 20-Jun-13 2:14am
   
I am also facing same problem with Ajax tool HTML Editor
Have any solution Please Help
mukesh_panth at 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
0 Maciej Los 655
1 OriginalGriff 453
2 CPallini 239
3 CHill60 180
4 Peter Leow 175
0 OriginalGriff 6,092
1 Sergey Alexandrovich Kryukov 4,898
2 Maciej Los 3,159
3 Peter Leow 3,129
4 DamithSL 2,490


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 27 Dec 2012
Copyright © CodeProject, 1999-2014
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