Click here to Skip to main content
16,022,362 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I am working on webpage in c# asp.net where the iframe should get the src from the dropdown list where i listed the youtube url's from database.
upto retrieving the value itis fine but i am not able to post the value i.e the url into the iframe src dynamically
Posted
Comments
Please post the code.
ZurdoDev 21-Jan-14 11:47am    
iframe.src = "whatever you need." Where are you stuck?

1 solution

I Suggest to dynamically add the iframe on dropdown selection change event. So that you will have a better control over theflow. Else if you want to avoid a round trips.. Why dont you send the url using query string? you need to figure out the logic to handle the special characters also.

Hope my answered might show a light.

Regards,
Pavan N
 
Share this answer
 

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