Dynamic marquee

I'm using ASP.NET 1.1

I have some records in Database Table and
I want to display those records   in the Marquee.

How can i do this. Pls advice.
sohrabusAsked:
Who is Participating?
 
TimCotteeConnect With a Mentor Head of Software ServicesCommented:
Hi sohrabus,

Page.Controls.Add(New LiteralControl("<Marquee scrollamount=5 direction=left>" & GetContent() & "</marquee>"))

Then have your getcontent function return whatever you want it to in terms of the content:

Private Function GetContent() As String
    Dim content As String = "<table><tr><td>Element1</td><td>Element2</td><td>Element3</td></tr></table>"
    Return content
End Function

This is just a static example but you could build that value from your database quite easily.

Tim Cottee
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.