私はASPXファイルに次のコードを使用します。コードでビデオタグのソースを設定するにはどうすればよいですか?
<video width="320" height="240" autoplay="autoplay">
<source id="videoSrc" runat="server" type="video/mp4"/>
Your browser does not support the video tag.
</video>
が、私は後ろのコードでこのコードを使用します。
protected void Page_Load(object sender, EventArgs e)
{
videoSrc.Src= "UploadMovies/"+Request.QueryString["id"]+"/high.mp4";
}
と私は<source>
に、このエラーを取得するmyPage.aspx?id=1
としての私のページを呼び出します。
The base class includes the field 'videoSrc', but its type (System.Web.UI.HtmlControls.HtmlSource) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlGenericControl).