pasteHTML cuteEditor using javascript

  •  03-26-2009, 4:45 AM

    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 Complete Thread