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