HTML5 Audio Tag Implementation with Asp.Net Server Controls

  • Thread starter Thread starter Swa-adesh
  • Start date Start date
S

Swa-adesh

Guest
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") %>' />
</audio>


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

Continue reading...
 
Back
Top