How to process the html content of the database

2 posts, 0 answers
  1. Stanislaw Tristan
    Stanislaw Tristan avatar
    1 posts
    Member since:
    Mar 2006

    Posted 03 Aug 2008 Link to this post

    I have a column that stores html content. How to display that content in the rotator?
  2. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 04 Aug 2008 Link to this post

    Hello Stanislaw,

    You should be able to use the ItemTemplate of the Rotator, similar to this example in the documentation;

    http://www.telerik.com/help/aspnet-ajax/rotator-data-binding.html

    So, essentially set the Rotator to bind to your database, and in set the template as so:

    <telerik:RadRotator ...>
      <ItemTemplate>
        <%# Eval("htmlContentColumn") %>
      </ItemTemplate>
    </telerik:RadRotator>

    Where "htmlContentColumn" is the name of your column in the database.

    What you'll also need to do is set the Height and Width of the RadRotator as well as the ItemHeight and ItemWidth.

    Shaun.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top