when i use following code to paste the html , when the drop down is selected -
foreach
(FileSystemInfo info in fsi)
{sFilePath = sFileLoc + info.Name;string sText = this.GetFileText(sFilePath);
dropdown.Items.Add(info.Name,sText.ToString());}
dropdown.Attributes["onchange"]="[CuteEditor_DropDownCommand(this,'PasteHTML')]";
I want the original HTML to be pasted in the cute soft editor
But the following HTML is pasted ,
check th original HTML after this -
<table cellSpacing="0" cellPadding="0" border="0"><header></header>
<tbody></tbody>
</table>
<table cellSpacing="0" cellPadding="0" border="0"><>      </>
<tbody>
<tr><>            </>
<td align="right" width="900" background="[HeaderImg]"></td><>             </>
</tr><>      </>
</tbody>
</table>
<table cellSpacing="0" cellPadding="0" border="0"><>      </>
<tbody>
<tr><>      <!-- <td><PresentationInfo></PresentationInfo></td> --> </>
<td>
<table cellSpacing="0" cellPadding="0" border="0"><>            </>
<tbody>
<tr><>             </>
<td vAlign="top" width="180" background="
http://www.NMM.com/ThemeComponents/TempImages/presenter area.jpg" height="180">            </td><>            </>
</tr>
<tr><>             </>
<td vAlign="top" width="180" background="
http://www.NMM.com/ThemeComponents/TempImages/presentation details.jpg" height="180">            </td><>            </>
</tr>
<tr><>             </>
<td vAlign="top" width="180" background="
http://www.nmm.com/ThemeComponents/TempImages/branding.jpg" height="180">            </td><>                   </>
</tr>
</tbody>
</table>
</td>
<td><presentationinfo></presentationinfo>
</td><>       <footer></footer>       </>
</tr>
</tbody>
</table>
<table cellSpacing="0" cellPadding="0" width="900" border="0"><>      </>
<tbody>
<tr>
<td align="right">                                                       
<table height="40" cellSpacing="0" cellPadding="0" width="900" border="0"><>                                                            </>
<tbody>
<tr>
<td align="left" width="900" background="
http://www.nmm.com/ThemeComponents/TempImages/blank footer.jpg" height="40">                                      </td>
<td id="prevDiv" align="right">[Previous]</td><>                              </>
<td></td><>                              </>
<td id="nextDiv">[Next]</td><>                                                 </>
</tr>
</tbody>
</table>                  
</td>
</tr>
</tbody>
</table>      
Original HTML -
<table border='0' cellpadding='0' cellspacing='0'>
<Header><Table border='0'cellpadding='0' cellspacing='0'>
<tr>
<td align='right' background='[HeaderImg]' width='900' height='[HeaderHeight]'></td>
</tr>
</table>
</Header>
<Table border='0' cellpadding='0' cellspacing='0'>
<tr>
<!-- <td><PresentationInfo></PresentationInfo></td> -->
<TD><Table border='0' cellpadding='0' cellspacing='0'>
<TR>
<td align='top' background="
http://www.nmm.com/ThemeComponents/TempImages/presenter area.jpg" width="180" height='180' valign="top"
</td>
</TR>
<TR>
<td align='top' background="
http://www.nmm.com/ThemeComponents/TempImages/presentation details.jpg" width="180" height='180' valign="top"
</td>
</TR>
<TR>
<td align='top' background="
http://www.nmm.com/ThemeComponents/TempImages/branding.jpg" width="180" height='180' valign="top"
</td>
</TR>
</TD>
</Table>
<td><PresentationInfo></PresentationInfo></td>
<Footer>
</Table>
<Table border='0' cellpadding='0' cellspacing='0' width='900'>
<td align='right'>
<Table border='0' cellpadding='0' cellspacing='0'width='900' height='40'>
<td background="
http://www.nmm.com/ThemeComponents/TempImages/blank footer.jpg" width='900' height='40' align='left'[InteractionsIcons]</td>
<td align='right' id='prevDiv'>[Previous]</td>
<TD></TD>
<td id='nextDiv'>[Next]</td>
</table>
</td>
</table>
</Footer>
</table>
Thanks.........