0
Answer

How to get video duration in file upload

How to to get video file duration in seconds or any timespan without play when we upload the video using file upload

and what it means

 if (htmlFile.PostedFile.ContentLength > 0)
        {

            string sFormat = String.Format("{0:#.##}", (float)htmlFile.PostedFile.ContentLength / 2048);