c#获取ckeditor中的html,并导出后通过IE打开

protected void Button1_Click(object sender, EventArgs e)    导出按钮事件

    {

        string HtmlBody = tbContent.Text;   // 获取ckeditor中的内容

        System.IO.File.WriteAllText(@"D:\abc.html", HtmlBody);

        Response.Write("

        System.Diagnostics.Process.Start(@"IExplore.exe", "D:\\abc.html");

}

分享: 

猜你喜欢

转载自blog.csdn.net/hb915a/article/details/83543881