Click here to Skip to main content
Sign Up to vote bad
good
See more: C#ASP.NET
In my Project,I have To Add The News,Announcement from The DataBase To The Home Page Using Marquee.Can Anyone Suggest Me,How To Add this To My project?
 

with Regards
NanKi
Posted 21 Feb '12 - 17:18


1 solution

Dear Friend,
 
Try this code:-
<marquee id="ml" style="text-align: center" direction="up" width="195" height="170">
                                scrolldelay="20" scrollamount="1" onmouseover="ml.stop();" onmouseout="ml.start();">
                                <asp:repeater id="Repeater1" runat="server" datasourceid="dtsLinks" xmlns:asp="#unknown">
                                <itemtemplate>
                                <br />                            
                                <div style="width: 150px">
                                    <asp:imagebutton width="150px" height="75px" id="ImageButton1" runat="server">
                                        ImageUrl='<%# String.Format("~\\img\\Links\\{0}",Eval("logo")) %>' PostBackUrl='<%# Eval("link") %>' ToolTip='<%# Eval("title") %>' /><br />
                                </asp:imagebutton></div>
                                <asp:hyperlink id="HyperLink1" runat="server" navigateurl="<%# Eval("link") %>">
                                    <asp:label id="Label1" runat="server" text="<%# Eval("title") %>"></asp:label></asp:hyperlink><br />
                            
                            </itemtemplate>
                            </asp:repeater>
 
</marquee> 
 
These link will be of much help to you:-
 
http://allen-conway-dotnet.blogspot.in/2010/03/how-to-create-scrolling-news-marquee.html[^]
 
http://mattberseth.com/blog/2008/01/cnn_style_scrolling_ticker_wit.html[^]
 
http://wiki.asp.net/page.aspx/1501/fetch-data-from-the-database-and-place-it-in-a-marquee/[^]
 
http://stackoverflow.com/questions/5386977/dynamic-marquee-in-asp-net[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Mohammed Hameed 268
1 OriginalGriff 261
2 Mayur_Panchal 153
3 Sergey Alexandrovich Kryukov 148
4 CPallini 96
0 Sergey Alexandrovich Kryukov 8,171
1 OriginalGriff 6,246
2 CPallini 3,532
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 21 Feb 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid