/Demo/FileDownload.aspx.cs
http://izwebfilemanager.googlecode.com/ · C# · 17 lines · 16 code · 1 blank · 0 comment · 1 complexity · 121d0472ff4dae83c31bad5e2b3dc771 MD5 · raw file
- using System;
- using System.Web;
- using IZ.WebFileManager;
-
- public partial class FileDownload : System.Web.UI.Page
- {
- protected void Page_Load (object sender, EventArgs e) {
- Label1.Text = "";
- }
- protected void FileManager1_FileDownload (object sender, DownloadFileCancelEventArgs e) {
- if(ProhibitDownload.Checked)
- {
- e.Cancel = true;
- Label1.Text = "Downloading file " + HttpUtility.HtmlEncode (e.DownloadFile.PhysicalPath) + " is prohibited.";
- }
- }
- }