我想从文件上传中清除文件路径。文件上传在更新面板内,我使用的是AsyncFileUpload
. 如何清除文件并更改文件上传的背景颜色
btnAudUpload_Click 方法
string filename =FileUpload.FileName;
string Fullpath = Path.Combine(@"D:\Media", filename);
if (FileUpload.HasFile)
{
if (filename.ToLower().EndsWith("mp4"))
{
//Saving the file
}
else
{
//I want to clear the FileUpload content here
}
}