Asp. NET how to play video from a link provided by a background database (without using an external plugin)

Source: Internet
Author: User

Tag: PNG IMA ROM Item plays log. NET commodity string

1. Background Video database:

Key codes in 2.aspx:

1 <asp:datalistID= "DataList2"runat= "Server"DataKeyField= "Product number"class= "Table_mingxing"2 DataSourceID= "SqlDataSource3"RepeatColumns= "4"cellpadding= "0" 3 cellspacing= "2">4                             <ItemTemplate>5                                 <Div>6                                     <Videowidth= "100%"Controls= "Controls"autostart= ' false '>7                                         <Sourcesrc= "<%# Eval ("SRC ")%>"></Source>type= "Video/mp4"/>8                                     </Video>9                                 </Div>Ten                                 <BR/> One                                 <Asp:labelID= "Label3"runat= "Server"Text= ' <%#Eval ("remarks")%>' ></Asp:label> A                             </ItemTemplate> - </asp:datalist><Asp:sqldatasourceID= "SqlDataSource3"runat= "Server"  - ConnectionString= "<%$ connectionstrings:phone%>"  the SelectCommand= "SELECT * from [Product] where commodity type number = ' 9 '"></Asp:sqldatasource>

3.CSS Style:

. table_mingxing span{color:#996633;}. Table_mingxing div{width:380px; height:200px}

4. Results

Asp. NET how to play video from a link provided by a background database (without using an external plugin)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.