codice:
 	 Sub AggiornaDati(Source as Object, E as EventArgs)

	    Dim cn
        Dim str
        Dim cmd

		Dim icount As Integer
 	    cn = new OdbcConnection(ConfigurationManager.ConnectionStrings("miaconnect").ConnectionString)


		Dim NomeFile As String = Request("NomeFile")


		If nomefile <> "" Then
		NomeFile = Server.MapPath("/") & "\public\UPLOAD\download\" & NomeFile
 		File.Delete(NomeFile)
		'Response.Write("Il file " & NomeFile & " è stato eliminato correttamente.") 
		End If


		Dim nm = ""
		Dim tt = ""

      Try
            cn.Open()



            str = "UPDATE download SET download.testone = '" + tt + "', download.nomefile1 = '" + nm + "' WHERE download.ID=1"
			

			cmd = New OdbcCommand(str, cn)
		

			icount = cmd.ExecuteNonQuery()
'       	Response.Write(str)

Catch ex As Exception
'messaggio di errore
response.write(ex.tostring())
Finally
'chiusura connessione
Dim connessione
If (Not (Connessione Is Nothing)) Then Connessione.Close()
End Try
Nel form recupero regolarmente nomefile che è un file mp3;
fa l'update, ma non elimina il file!