Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         FlexPaperViewerContainer.Visible = false;
         PackageDownload.Visible          = false;
         if (filelist.IsNullOrEmpty())
         {
             return;
         }
         FilesList.DataSource = filelist;
         FilesList.DataBind();
         var fileUrl = filelist[0];
         if (Request.QueryString["a"] == "d")
         {
             if (filelist.Length > 1)
             {
                 DownloadPackage();
             }
             Response.Redirect(fileUrl);
         }
         if (filelist.Length > 1)
         {
             PackageDownload.Visible = true;
         }
         Prieview(fileUrl);
     }
 }
Ejemplo n.º 2
0
 protected override void OnLoad(EventArgs e)
 {
     FilesList.DataSource = Files;
     FilesList.DataBind();
 }