Access Author name in RSS FEED

Posted by Mesh_2010 under C# on 11/18/2011 | Points: 10 | Views : 871 | Status : [Member] | Replies : 1
Hi,

Access Author name in RSS FEED not given output.
given bellow code

[code]
<skm:rssfeed runat="server" id="rss_reader" CacheDuration="0" ShowHeader="False"
MaxItems="3" cellpadding="0" cellspacing="0" border="0" gridlines="none" DescriptionMaxLength="1000"
RssFeedTitleMaxLength="1000">
<itemtemplate>
<div id="rss-content">
<div id="arthead">
<asp:Hyperlink ID="Hyperlink1" runat="server" CssClass="news_title" NavigateUrl='<%#Container.DataItem.Link %>' Text='<%# Container.DataItem.Title %>'></asp:Hyperlink>
<div class="nright">

<div id="rss-author"><span style="color:#666666">By:&nbsp;</span><span class="artsn"> <b><%#Container.DataItem.Author%></b></span>&nbsp;&nbsp; <span style="color:#666666">Posted On:</span><span class="artsn"> <b>


<%#(TimeZoneInfo.ConvertTime(Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "PubDate")), TimeZoneInfo.FindSystemTimeZoneById("UTC"))).ToString("MMM dd, yyyy")%>

</span></b></div>
</div>

</div>

<div class="clear"></div>
<div id="artdesc">
<div class="text_rate1"><%# Container.DataItem.Description%> <span class="artlink"><a href="<%# Container.DataItem.Link %>"> &nbsp; <img src="http://s1.miid.me/more_btn.jpg" border="0" alt="Read More">
</a></span>
</div>

</div>

</div>
</itemtemplate>
</skm:rssfeed>
[/code]

Thanks
RameSH sinGH



Responses

Posted by: perfectchourasia-9163 on: 11/18/2011 [Member] Starter | Points: 25

Up
0
Down
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="RSSFeedExampleForm.aspx.vb" Inherits="RSSFeedExampleForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>RSSFeed Example Form</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="http://www.spaces.msn.com/members/mauliksoni/feed.rss"
XPath="rss/channel/item"></asp:XmlDataSource>
</div>
<asp:DataList ID="DataList1" runat="server" BackColor="White" BorderColor="#DEDFDE"
BorderStyle="None" BorderWidth="1px" CellPadding="4" DataSourceID="XmlDataSource1"
ForeColor="Black" GridLines="Vertical" Width="188px">
<FooterStyle BackColor="#CCCC99" />
<SelectedItemStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<AlternatingItemStyle BackColor="White" />
<ItemStyle BackColor="#F7F7DE" />
<HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
<ItemTemplate>
<%#XPath("title")%>
<hr color="#0099ff" /> <br />
<%#XPath("description")%><br />
</ItemTemplate>
</asp:DataList>
</form>
</body>
</html>



Partial Class RSSFeedExampleForm
Inherits System.Web.UI.Page

End Class

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Mesh_2010, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response