Пример #1
0
        private void link_Click(object sender, System.EventArgs e)
        {
            OperationResult objOperationResult = new OperationResult();
            LinkButton      senderCtrl         = (LinkButton)sender;
            string          path;

            path = Server.MapPath("files/" + senderCtrl.Text);

            var multimediaFile = objPacientBL.GetMultimediaFileById(ref objOperationResult, senderCtrl.ID);

            File.WriteAllBytes(path, multimediaFile.ByteArrayFile);

            Download(senderCtrl.Text, "files/" + senderCtrl.Text);
        }