ASP.NET Futures (2007): DynamicRssLink Control
This section provides information about the following:
DynamicRssLink control. This control is one of a set of dynamic data
controls that obtain schema information at run time, provide default display formats
according to common user expectations, and enable you to easily customize those
formats.
The DynamicRssLink control displays a hyperlink that serves the data
on the page as an RSS feed.
<asp:DynamicRssLink runat="server" />
The feed contains links to the items in the detail view for the current table, taking
filters into account. For example, if the current page displays a task list and
is filtered to show only a particular category of tasks, the RSS feed is also filtered
to display only that category.
This control has the following properties:
ControlID. Specifies the name of a HyperLink control.
The DynamicRssLink control uses the specified control instead of creating
a HyperLink control with default settings. This enables you to customize
the appearance of the DynamicRssLink control.
Customizing the Control
To control what text is displayed for the RSS title and description fields, provide a
GetRSSFields method for the page. GetRSSFields takes no
arguments and returns an IEnumerable list that contains exactly two
strings. For dynamic languages, this has the effect of overriding the GetRSSFields
method of the base class for the page. For statically compiled languages, the
GetRSSFields method must explicitly override the base class method.
See Also
Introduction: Dynamic Data Controls for ASP.NET
|