SaveContentToFile have problem

4 replies. Last post: June 24, 2010 5:40 PM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
caMember

hi all,


i am trying to edit a html page using webtexteditor,

here i am loading the html page using the below code

WebTextEditor1.LoadContentFromFile(Server.MapPath("Template/template-news.html"].ToString()), true);


and i am saving file after editing using the code

WebTextEditor1.SaveContentToFile(Server.MapPath("newsletter/newsletter.html"), WebTextEditorHtmlDocType.XHTMLDocType, "Title Name", true);

But here my problem is, after saving the content , the saved file having one extra html line as something like given below

<link rel="stylesheet" type="text/css" href="/EMAIL-BOMB/WebResource.axd?d=KinZ3FO6bDNsWdnOyPsftf50a0SYo802x6p7oTaktpR1Rzi5HoPHo2FOScdInn0XbuBlRbw3vL0L5Eouybv_ujakmVEGcFa_gGrGQp-NwUo1&t=633997617420000000" /><link rel="stylesheet" type="text/css" href="/EMAIL-BOMB/WebResource.axd?d=KinZ3FO6bDNsWdnOyPsftf50a0SYo802x6p7oTaktpR1Rzi5HoPHo2FOScdInn0XiyogZ-ZMhhIWEQDMzqxixMbPN0VPaaHDkM8aRh1NaJM1&t=633997617420000000" /><body style="margin: 5px; padding: 1px; word-wrap: break-word; font-family: 'lucida sans unicode'; font-size: 8pt;" spellcheck="false" linkifying="true">

If my html page have this line, i am getting the dotted borders in the page. If i manually remove this line from html code, i am getting the perfect page.


can you tell me is there any way to save the content of the texteditor without this line.



thanks and regards

ca

All times are GMT -5. The time now is 3:44 PM.
Previous Next