CAESDO.Recruitment.Web.Shared_ApplicationReview.lbtnPublicationFile_Click C# (CSharp) Method

lbtnPublicationFile_Click() protected method

protected lbtnPublicationFile_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        protected void lbtnPublicationFile_Click(object sender, EventArgs e)
        {
            int FileID = 0;
            bool success = false;

            success = int.TryParse(((LinkButton)sender).CommandArgument, out FileID);

            if (success)
            {
                if (DownloadFile(FileID) == false)
                {
                    throw new ApplicationException("Publication File Not Found: ID=" + FileID.ToString());
                }
            }
        }