This commit is contained in:
2025-03-03 10:53:04 +08:00
parent ac3e368d1f
commit 4d9b7e2b79
5 changed files with 54 additions and 10 deletions
+14 -4
View File
@@ -22,7 +22,7 @@ namespace FineUIPro.Web.AttachFile
{
newurl = Baseurl + Fileurl;
}
else if (FiletExtension == ".txt"|| FiletExtension== "pdf")
else if (FiletExtension == ".txt" || FiletExtension == "pdf")
{
newurl = Fileurl;
}
@@ -30,9 +30,19 @@ namespace FineUIPro.Web.AttachFile
{
newurl = Fileurl;
}
this.LookHtml.Src = newurl;
this.Tab1.IFrameUrl = newurl;
if (AttachFileService.IsImage(FiletExtension))
{
this.TabStrip1.Hidden = true;
this.Image1.Hidden = false;
this.Image1.ImageUrl = newurl;
}
else
{
this.TabStrip1.Hidden = false;
this.Image1.Hidden = true;
this.LookHtml.Src = newurl;
this.Tab1.IFrameUrl = newurl;
}
//StreamReader fread = new StreamReader(url, System.Text.Encoding.GetEncoding("gb2312"));
//string ss = fread.ReadToEnd();
//Response.Write(ss);