如何解决使用iframe打开{2}标签时,ASPxRichEdit无法正常工作
我有一个使用ASPxRichEdit来编辑文件doc或docx的Web应用程序,我从iframe调用此Web应用程序,当有1个调用时,它有2个调用,ASPxRichEdit无法保存内容编辑,并且有时它显示警报框会话超时。有人可以告诉我如何解决该问题
这是我的代码:
filepath = Request.QueryString["fileurl"];
localpath = WebConfigurationManager.AppSettings["LinkFile"];
isDuThao = Request.QueryString["isDuThao"];
isEdit = Request.QueryString["isEdit"];
if (filepath != null)
{
Base64EncryptDecryptFile decryptFile = new Base64EncryptDecryptFile();
string decode = Base64Decode(filepath);
decode = decryptFile.DecryptData(decode);
decode = decode.Remove(0,1);
baselocalpath = Path.Combine(localpath,decode.Replace('/','\\'));
baselocalpath = baselocalpath.Replace("%20"," ");
baselocalpath = HttpUtility.UrlDecode(baselocalpath);
}
FileInfo fi = new FileInfo(baselocalpath);
string Dir = fi.DirectoryName + @"\\";
string ext = fi.Extension;
string NameFile = fi.Name.Replace(ext,"");
PathFile = Dir + NameFile + DateTime.Now.ToString("hhmmss") + ext;
using (FileStream fileStream = File.Create(PathFile))
{
if (ext.ToUpper() == ".doc".ToUpper())
{
ASPxRichEditView.SaveCopy(fileStream,DevExpress.XtraRichEdit.DocumentFormat.Doc);
}
else
{
ASPxRichEditView.SaveCopy(fileStream,DevExpress.XtraRichEdit.DocumentFormat.OpenXml);
}
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。