473,421 Members | 1,616 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,421 software developers and data experts.

showing date on ashx page (rss)

Hello,

I created an ashx file for my rss feed (rss.ashx). I notice on the site
(http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml) that the date
(Yesterday, October 30, 2006, 3:02:37 PM) is shown above the "description"
tag and in front of the green arrow. My question is, what tag shows this
date?

On my a page, the date doesn't show.

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>RSS Feed</title>
<link>http://mylink.com</link>
<description>Home Site</description>
<ttl>60</ttl>

<item>
<title><![CDATA[ Allcatel-Lucent Merger Update ]]></title>
<link>http://MERGER_0.HTML</link>
<guid isPermaLink="true">http://MERGER_0.HTML</guid>
<description><![CDATA[ Alcatel and converged networks. ]]>
</description>
<pubDate>12/30/2006 7:05:00 PM</pubDate>
</item>
</channel>
</rss>

Thanks, sck10
Oct 31 '06 #1
4 2107
Hi,

After carefully reviewed your question, I'm not still quite clear about it.
Did you mean the "pubDate" element in the RSS file?

Based on your previous posts about RSS, I assume you're using the RSS
Toolkit. You could use "rssdl.exe" to generate a strong typed object model
over the RSS feed and access the pubDate property easily. You can find an
example here:
#ScottGu's Blog : Awesome ASP.NET 2.0 RSS Tool-Kit Released
http://weblogs.asp.net/scottgu/archi...22/438738.aspx
The RSS Toolkit also adds support for creating a strongly-typed object
model over a remote RSS feed. This allows you to program against RSS data
in a clean, easy way.
Let me know if I've misunderstood your question.

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 1 '06 #2
Hi Walter,

Actually, I am creating the feed from my own ashx page, not using the tool.
My page is working, I just cant' get the date to show. I noticed other
sites show the date the same way. When I look at the source file, I can't
figure out what xml tag is being used.

So if you go to the site
(http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml), you will see
"Today, November 01, 2006, 34 minutes ago". When I look at the source file,
that text is not in there. Somehow, its being generated. What I am trying
to figure out is how to generate the date in my ashx page.

Thanks for your help...

"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:X4**************@TK2MSFTNGXA01.phx.gbl...
Hi,

After carefully reviewed your question, I'm not still quite clear about
it.
Did you mean the "pubDate" element in the RSS file?

Based on your previous posts about RSS, I assume you're using the RSS
Toolkit. You could use "rssdl.exe" to generate a strong typed object model
over the RSS feed and access the pubDate property easily. You can find an
example here:
#ScottGu's Blog : Awesome ASP.NET 2.0 RSS Tool-Kit Released
http://weblogs.asp.net/scottgu/archi...22/438738.aspx
The RSS Toolkit also adds support for creating a strongly-typed object
model over a remote RSS feed. This allows you to program against RSS data
in a clean, easy way.
Let me know if I've misunderstood your question.

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your
reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 1 '06 #3
Hi,

I'm sorry but I can only see the raw xml in IE about the url
"http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml".

Regarding the "Today, November 01, 2006, 34 minutes ago", I guess it's
generated by some script (or XSLT?). Consider this: to get the "34 minutes
ago" info, you must compute it using current date, which means it's dynamic
rather than static. What I mean is that this should be done by the clients
who consume your RSS feed, your feed should only need to contain the static
"pubDate" field.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 2 '06 #4
Thanks Walter...
"Walter Wang [MSFT]" <wa****@online.microsoft.comwrote in message
news:5L**************@TK2MSFTNGXA01.phx.gbl...
Hi,

I'm sorry but I can only see the raw xml in IE about the url
"http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml".

Regarding the "Today, November 01, 2006, 34 minutes ago", I guess it's
generated by some script (or XSLT?). Consider this: to get the "34 minutes
ago" info, you must compute it using current date, which means it's
dynamic
rather than static. What I mean is that this should be done by the clients
who consume your RSS feed, your feed should only need to contain the
static
"pubDate" field.

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 2 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phong Ho | last post by:
Hi everyone, I use the MagpieRSS parser to read RSS newsfeeds. I am able to get the title, url and description. However, I do not able to get the time or date the newsfeed was last published....
0
by: JJ | last post by:
I am trying to use .ashx files to handle dynamic image requests. The aspx page needs to pass the data to the ashx file. It was decided to not use the query string. Instead we hoped we could use the...
0
by: Shapper | last post by:
Hello, I have an ASP.Net Repeater where I display a date from a date field: <%# DataBinder.Eval(Container.DataItem, "pubDate", "{0:f}") %> When the dataset is created from a database the date...
5
by: Roshawn Dawson | last post by:
Hi, Has anybody created an entire asp.net app using only ashx files? I know that they are simply handlers used by the asp.net worker process. I hear that they are in some respects better than...
6
by: Philipp Schmid [MSFT] | last post by:
I am trying to add a Generic Handler (ASHX) to my web site solution. In order to do that I have to specifiy an assembly name in the web.config file. But since 2.0 web sites are no longer...
0
by: Carl Gilbert | last post by:
Hi I have recently got the ASP.NET 2.0 Clubsite Starter Kit up and running on my 1&1 web space. Recently I have started getting lots of exceptions and white pages. I have put some code in...
4
by: nishac | last post by:
Hi friends Anybody has worked with the Rss reader flash file to display the blog posts? My code was working well until I upgraded the flash as notified by Adobe.Now my rss not showing any...
0
by: nickmarkham | last post by:
Hi, I have 'localized' the button images in my web app by using an HTTP handler file for each image so the correct langauge imagebutton can be loaded depending on the users language. In the...
3
by: George | last post by:
I am doing an AJAX call using JQuery on my page to which returns JSON objects and everything works fine. Now I decided to use ashx handler instead of and simply write JSON out. Then my problems...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.