473,545 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "descriptio n"
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>Ho me Site</description>
<ttl>60</ttl>

<item>
<title><![CDATA[ Allcatel-Lucent Merger Update ]]></title>
<link>http://MERGER_0.HTML</link>
<guid isPermaLink="tr ue">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 2112
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.comwr ote in message
news:X4******** ******@TK2MSFTN GXA01.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.c om/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.comwr ote in message
news:5L******** ******@TK2MSFTN GXA01.phx.gbl.. .
Hi,

I'm sorry but I can only see the raw xml in IE about the url
"http://rss.msnbc.msn.c om/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
1734
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. Would anyone give me a hand. Here is an example of my code: $query = "SELECT rss.title, rss.url FROM rssfeed AS rss"; $result =...
0
2686
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 Session or the Context cache. e.g. (in the aspx page) Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...
0
1244
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 text format change when Thread.CurrentThread.CurrentCulture change. However, when I create the dataset from a XML (RSS 2.0 Format) file the date...
5
7066
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 using aspx files because they don't have to be compiled and don't need any page processing. As an experiment, I'm creating an affiliate site that...
6
2774
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 pre-compiled I get an error when trying to load the first page. <system.web> <httpHandlers> <add verb="GET,POST" path="*.angel"...
0
1953
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 global.asax to email me when an error occurs. The site doesn't get that much traffic, perhaps a couple of hundred hits a day. I've made some charts...
4
1843
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 blogs.Can anybody help me in this regard?Can it be a problem with xml? I am giving my code hereby document.write('<a href="/blog/blog.html"><img...
0
1938
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 ASHX file, i set the CurrentUICulture for the current thread using the following line, which reads the users' broswer default langauge. This works...
3
17665
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 begun. So here is JQuery call $.ajax({ type: 'POST', url: url,
0
7475
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7409
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7436
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5981
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5341
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4958
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1897
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1022
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.