protected void UploadClick(object sender, DirectEventArgs e)
        {
            if (this.fufPDF.HasFile)
            {
                string fileName = System.DateTime.Now.Ticks.ToString("D16");

                this.fufPDF.PostedFile.SaveAs(this.Server.MapPath("~/PDFViewer/Files/" + fileName + ".pdf"));

                PDFSWFConvert.ConvertPdfToSwf(this.Server.MapPath("~/PDFViewer/Files/" + fileName + ".pdf"));

                this.Panel3.AutoLoad.Url     = "PDFViewer.aspx";
                this.Panel3.AutoLoad.Mode    = LoadMode.IFrame;
                this.Panel3.AutoLoad.NoCache = true;
                this.Panel3.AutoLoad.Params.Clear();
                this.Panel3.AutoLoad.Params.Add(new Parameter("FileName", fileName));
                this.Panel3.LoadContent();
            }
        }
        protected void UploadClick(object sender, DirectEventArgs e)
        {
            if (this.fufPDF.HasFile)
            {
                string fileName = System.DateTime.Now.Ticks.ToString("D16");

                this.fufPDF.PostedFile.SaveAs(this.Server.MapPath("~/PDFViewer/Files/" + fileName + ".pdf"));

                PDFSWFConvert.ConvertPdfToSwf(this.Server.MapPath("~/PDFViewer/Files/" + fileName + ".pdf"));


                X.Msg.Show(new MessageBoxConfig
                {
                    Buttons = MessageBox.Button.OK,
                    Icon    = MessageBox.Icon.INFO,
                    Title   = "Success",
                    Message = "File " + fileName + ".pdf upload ok "
                });
            }
        }