1
我想獲取存儲在本地數據庫中的視頻網址,並將其顯示在網絡表單中。我的問題是我不知道如何將代碼從類後面傳遞到webform。我已經通過將文本屬性設置爲圖像url而使用標籤顯示圖像,但對於視頻不起作用。在Webform中顯示視頻
顯示如下形象:
string image;
string video;
Advertisement Ad= BusinessLogic.getAd(9);
image = Ad.getImage();
video = Ad.getVideo();
ScriptManager.RegisterStartupScript(this, this.GetType(), Guid.NewGuid().ToString(), "alert('" + image + "');", true);
lblImage.Text = "<img alt='' style=width:150px; height:150px src='" + image + "'/>";
}
如何顯示在運行時設置URL的視頻?
謝謝你的時間。
...這僅僅是個開始。 – Alexander 2014-09-22 08:30:19