using BLL;
using System;

namespace FineUIPro.Web.AttachFile
{
    public partial class Look : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.btnClose.OnClientClick = ActiveWindow.GetHideReference();

                var url = Request.Params["fileUrl"];
                 var newurl = Funs.SGGLUrl + url.Replace(Funs.RootPath, "");
                this.LookHtml.Src = newurl;
                //StreamReader fread = new StreamReader(url, System.Text.Encoding.GetEncoding("gb2312"));
                //string ss = fread.ReadToEnd();
                //Response.Write(ss);
                //fread.Close();
                //fread.Dispose();

            }

        }
    }
}