单击时在同一页面中显示的不同视频 [英] different videos displayed in a same page when they are clicked

查看:75
本文介绍了单击时在同一页面中显示的不同视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在default.aspx中有5张图片。如果我点击图片,相关的YouTube视频必须在video.aspx页面中显示。我尝试查询字符串但没有用。如何在同一页面中获取不同的视频。我是一个更新鲜的人,所以如果答案是简短的话会很有帮助。

I am having 5 images in default.aspx.If i clicked an image a related youtube video have to be shown in video.aspx page.I tried query string but no use.How can i get different videos in a same page.I am a fresher,so it would be helpful if the answer is in brief.

推荐答案

如果我理解正确你想要在一个网页上的所有视频。



你应该使用html的框架概念。这应该适合你。



if i understood correctaly u want all videos in a single web page.

you should use frame concept of html.This should work for you.

<iframe id="frm2" runat="server" frameborder="0">
        scrolling = "no" clientidmode="Inherit" enableviewstate="True" 
        name="I1" align="middle"  >
   </iframe>





然后你需要按照你的意愿调用你框架的src元素



iam给予按钮点击





and then u need to call src element of your frame with as u wish

iam giving on button click

frm2.Attributes["src"] = "//your web link";


这篇关于单击时在同一页面中显示的不同视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆