Link to home
Start Free TrialLog in
Avatar of fmichail
fmichailFlag for Canada

asked on

how to change src attribute of HTML5 tag in asp.net page

I tried the <video> tag of html5, and it runs the mp4 file OK (If I define the src attribute in the HTML code, however, what I want to do is to pass the video url to the web form as query string, and do not know how to change the src property dynamically. even when I try to user thevideo.attributes.add for the <video> tag marked as runat="server" and ID="thevideo" I get an error showing the ID "thevideo" of the Video element is not known to the code. Can some help please. Thanks
ASKER CERTIFIED SOLUTION
Avatar of Daniel Van Der Werken
Daniel Van Der Werken
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fmichail

ASKER

Sorry Dan7el, you are right, I forgot to add runat="server".. please accept my apologies. Thanks