HTML5 Audio Tag Implementation with Asp.Net Server Controls RRS feed

  • Question

  • Hi,
    I am implementing HTML audio tag element in my ASP.NET Project. i am using Generic Handler For play the audio files but facing one issue on that. The error related with Source of audio tag. So, Attaching the small code of HTML audio tag. Please suggest.

    Here the short code:

    <audio controls>
    <source src='<%# Eval("Id", "./Handlers/XYZ.ashx?Id={0}") %>' type='<%# Eval("FileType") %>' />

    But after debugging it shows the error like "unsupported file format or file path" error comes in audio tag of html5. i think i am not giving the right path of generic handler file path in the source of HTML5 audio tag.

    Thank You

    • Moved by CoolDadTx Friday, July 27, 2018 3:19 PM ASP.NET related
    Friday, July 27, 2018 8:28 AM

All replies

  • Please post questions related to ASP.NET in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Friday, July 27, 2018 3:19 PM