Dynamic Marquee in asp.net


How I can create dynamic marquee in c#.net? That means I want to display announcements in home page, direction from top to bottom in allotted space, only two announcenets at a time, it should come dynamically.Thanks.

Best Solution

<asp:Literal ID="Literal1" runat="server"></asp:Literal>

Then you can give value for the literal.

protected void Page_Load(object sender, EventArgs e)
    string str = "get data from database";
    string text = "<MARQUEE>" + str + "</MARQUEE>";
    Literal1.Text = text;