RssFeed Documented Class Library

RssFeed.ItemTemplate Property

Gets or sets the template for the items in the RssFeed control.

public System.Web.UI.ITemplate ItemTemplate {get; set;}

Property Value

A System.Web.UI.ITemplate that contains the template for the items in the RssFeed control. The default value is a null reference (Nothing in Visual Basic).

Remarks

Use the ItemTemplate property to control the contents of the items in the RssFeed control. The appearance of the items in the RssFeed control is controlled by the ItemStyle property.

The contents of the ItemTemplate can be customized via the RssItem properties. The syntax to use is illustrated in the example.

Example

<%@ Register TagPrefix="skm" Namespace="skmRss" Assembly="skmRss" %>
<skm:RssFeed runat="server" id="myFeed">
  <ItemTemplate>
    <# DataBinder.Eval(Container.DataItem, "Title") %>
    <br />
    <i><# DataBinder.Eval(Container.DataItem, "PubDate") %></i>
  </ItemTemplate>
</skm:RssFeed>

See Also

RssFeed Class | skmRss Namespace