1. 程式人生 > >c#獲取ckeditor中的html,並匯出後通過IE開啟

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");

}

分享: