【发布时间】:2010-12-07 09:53:07
【问题描述】:
我有 YouTube 频道,我的网站上有显示此视频的网页,我在 ModalPopupExtender 中显示视频,当我完成显示此视频并关闭 ModalPopupExtender 时出现问题,视频的声音仍在显示。
所以请任何人帮助我。
' id="Image" runat="server" width="96" height="86" alt="Video" />
'>
' 类型="应用程序/x-shockwave-flash"
allowscriptaccess="always" allowfullscreen="true" width="400" height="320">
关闭
' />
protected void Page_Load(object sender, EventArgs e) { 字符串 LanguageID = Globals.GetSuitableLanguage(Page); Page.Title = Globals.Translate(Page.Title, Page); 如果(!IsPostBack) { GetAllYouTube(); }
} 私人无效GetAllYouTube() { 使用 (SqlConnection con = Connection.GetConnection()) { string Sql = "select id,url,Image, " + Globals.Translate("YoutubeTitle_EN", Page) + " from [YouTubeVideos] Where MV='Yes'" ; SqlCommand Com = new SqlCommand(Sql, con); Com.CommandType = CommandType.Text;
SqlDataReader dr = Com.ExecuteReader();
DataList2.DataSource = dr;
DataList2.DataBind();
}
}
【问题讨论】:
-
你有我们能看到的代码吗?