1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user