Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using U Tube to run Videos.One of them is below.
I want to change src (URL) for different Video to RUN on Click Event on the same Page.


XML
<iframe width="420" height="315" src="http://www.youtube.com/embed/5dlmRLH-uBI" frameborder="0" allowfullscreen hidefocus="hideFocus" name="AA" title="Test">
        </iframe>
Posted
Updated 27-May-12 1:31am
v2
Comments
db7uk 27-May-12 10:30am    
Is that a click event on the page within the iframe or the master page that hosts the iframe? Easy to do with the latter but not so easy doing it with the former.
LebneizTech 27-May-12 10:36am    
If Master Page create any problem,then I can manage it without it.But it should change the path of Video on Click Event.

1 solution

Make the source dynamic via code behind by using some static variable and binding that to page.
 
Share this answer
 
Comments
LebneizTech 29-May-12 22:17pm    
I had tried, but it is not possible from me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900