Production of rolling news with icons (ASP. net c #)

Source: Internet
Author: User

There may be a lot of beginner friends like me (especially those who have studied ASP) who have such a confusion. How does Asp.net (C #) Implement rolling news?

Let's take a simple example and leave a file for yourself.

< Marquee Onmouseover = "Javascript: this. Stop ();" Onmouseout = "Javascript: This. Start ();" Scrollamount = "1"

Direction = "Up" Style = "Width: 401px; Height: 132px" >

< ASP: DataGrid ID = Dgnews Runat = "Server" Height = "132px" Width = "392px" Borderstyle = "NONE" Showheader = "False" Gridlines = "NONE" Bordercolor = "White" Autogeneratecolumns = False Datasource = "<% # Dvnews %>" >

< Columns >

< ASP: boundcolumn Datafield = "Postid" Dataformatstring = "& Lt; IMG src = images/arrow.gif & gt ;" >

< Itemstyle Width = "10px" >

</ Itemstyle >

</ ASP: boundcolumn >

< ASP: hyperlinkcolumn Target = "_ Blank" Datanavigateurlfield = "Postid" Datanavigateurlformatstring = "Shownews. aspx? Postid = {0 }" Datatextfield = "Title" Sortexpression = "Postdate" > </ ASP: hyperlinkcolumn >

</ Columns >

</ ASP: DataGrid >

</ Marquee >

Dvnews is the data we obtain from the database.

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.