pasteHTML cuteEditor using javascript

Last post 03-26-2009, 4:45 AM by goh6613. 0 replies.
Sort Posts: Previous Next
  •  03-26-2009, 4:45 AM 50298

    pasteHTML cuteEditor using javascript

     hi
     
    i wanna paste html into my cuteEditor (id='ceFrontDesign'), i set like this
     

    var editor1 = document.getElementById('<% = ceFrontDesign.ClientID %>');

    editor1.PasteHTML('<img id="image'+ iImageCount +'" name="image'+ iImageCount +'" style="Z-INDEX: '+ (iImageCount-100) +'; left: 30px; width: '+ iWidth +'px; position: absolute; top: 30px; height: '+ iHeight +'px" border=0 src="'+ sImageName +'">');
     
    but it return me this error at page load
    error : The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
     
    may i know what is this problem ?
     
    thanks
     
View as RSS news feed in XML