Uptodate News Line at ASP.net

Hiiiiii I want to show the news line on my asp.net page this line should rotate and it should be flipped without using refresh button (with AJAX) this news feed takes data from the database ... I tried with marquee tags but this is not worked any suggestion please

+2


source to share


1 answer


Perhaps one of the simplest things you can do is use the UpdatePanel in ASP.NET and use a ticker event that will send PostBack to the server and update the content of your UpdatePanel at a given interval.

Then you can use client side AsynPostBack events to use a little bit of jQuery magic on the data to make it look good. Either way, you get the server and client code here. You can copy the client-side 100% JavaScript, but using a jQuery framework would be very helpful.

Here's some sample code when using jQuery Cycle :



 <div id="product_ticker">
    <div>
        News A
    </div>
    <div>
        News B
    </div>
    <div>
        News C
    </div>
    <div>
        News D
    </div>
 </div>

<script type="text/javascript" language="javascript">
    $(function() {
        $('#product_ticker').cycle();
    });
</script>

      

Here are some links worth looking at for more ideas:
* http://net.tutsplus.com/tutorials/javascript-ajax/build-a-simple-jquery-news-ticker/
* http://israelwebdev.wordpress.com / 2009/03/25 / jquery-ltrrtl-news-ticker /
* http://malsup.com/jquery/cycle/

+2


source







All Articles