My problem is that when i pass path in this way its work fine
Hide Copy Code
SoundPlayer playthewavfile = new SoundPlayer(@"G:\backup\LTM.CTP.WEBFORM\LTM.CTP.WEBFORM\Audio\q1.wav");but i want to give the path like this
Hide Copy Code
FileUpload1.PostedFile.SaveAs(Server.MapPath("~/Forms/Upload/" + fileName)); string PATH = System.IO.Path.Combine(Server.MapPath("~/Forms/Upload"), FileUpload5.PostedFile.FileName); SoundPlayer playthewavfile = new SoundPlayer(PATH); playthewavfile.Play();here its give exception of invalid path?

Sajid HussainPosted Feb 11, 2016, 11:09 PM
AshokPosted Feb 10, 2016, 8:43 AM
Shubham KumarPosted Feb 10, 2016, 4:05 AM