Example #1
0
 //fires when clicking button1, uploads file
 protected void Button1_Click(object sender, EventArgs e)
 {
     if (FileUpload1.HasFile)
     {
         Label1.Text = AudioFiles.UploadFile(FileUpload1, TextBoxAudioName.Text.Replace("'", ""), TextBoxDescription.Text, Session["ID"].ToString()) + "<br> Upload Successeful!";
     }
     else
     {
         Label1.Text = "You have not specified a file.";
     }
 }