string fileName = FileUpload1.FileName; string FileExtension = fileName.Substring(fileName.LastIndexOf('.') + 1).ToLower(); if (FileExtension == "flv" || FileExtension == "wmv") { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)