How could i paly a video & audio file on 开发者_高级运维an asp.net page so that the file is determined on the run time
ASP.NET itself has no capabilities to do this as it's a server side technology. What you can do however is put html, just like like you would do in a standard html file, to display these.
If you can already make use of html5 then you're in luck as it provides dedicated tags like <video>
and <audio>
.
I wouldn't do this in ASP.NET myself, I'd use one of the jQuery plug-ins that make this easy. Check out the jQuery Media Plugin as an example.
精彩评论