NewsRSS web control (namespace Melon.Components.News.UI.Controls) is for generating RSS link in the header of the page where it is included. This control must be included in a page if the browser must detect the RSS feed.
The language for which you want to generate RSS feed should be set in property Language. If language is changed on the web site you have to set the new language and call method Bind().
To use this control:
- Register and declare the user control in the web page where you want the featured
news to
be listed.
<%@ Register TagPrefix="melon" Assembly="Melon.Components.News" Namespace="Melon.Components.News.UI.Controls"%>
Declaration in html of the web page:
<melon:NewsRSS ID="cntrlNewsRSS" runat="server" />
- Set the language in which should be translated the news RSS in property
Language of the web control.
Note: If there are several languages on the web site and user can switch them from the interface don't forget when language is changed on the web site to change property Language of the user control and call its method Bind().
Example for handler of change language event:
protected void cntrlLanguages_ChangeLanguage(object sender, ChangeLanguageArgs args)
{
cntrlNewsRSS.Language = args.NewLanguage;
cntrlNewsRSS.Bind();
}