Ok i got this function from web and it worked
var encodedHtml = escape(NewsBody_rich.document.body.innerHTML);
encodedHtml = encodedHtml.replace(/\//g,"%2F");
encodedHtml = encodedHtml.replace(/\?/g,"%3F");
encodedHtml = encodedHtml.replace(/=/g,"%3D");
encodedHtml = encodedHtml.replace(/&/g,"%26");
encodedHtml = encodedHtml.replace(/@/g,"%40");
I was thinking about another way to pass the data to server using hidden textbox I thought of putting the formatted html message to a asp hidden textbox and take it in the code-behind using the following script
document.getElementById("TextBox1").value=NewsBody_rich.document.body.innerHTML;
but this not working, when i put alert after this script code it shows the TextBox1.Value as assigned html message, but when i debug in the code-behind the TextBox1.Text value is empty. i dont know why?! i did lot of debugging still couldnt able to find, i even replace asp server textbox with html server texbox, still not working!! Do you have any idea why is it so!? Thanks SRini