.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
satyapriyanayak
Subhransu Sekhar Jena
abhays
SP
DotnetUser
Post New Web Links

bbc news rss feed

Posted By:      Posted Date: September 04, 2010    Points: 0   Category :ASP.Net
 
Im trying to link my site to the bbc uk news rss feed to display the headlines on my page with links to the bbc news site I know I need to pull the feed into an xml file and then display this data on my web page I'm thinking of making a control for the display and add the control to my home page can anyoen help me with this of send me a link on how to do it cheers 


View Complete Post


More Related Resource Links

Disable a Specific News Feed Activity Using the Client Object Model

  

Hello and thanks for reading. I've been working with the out-of-box SharePoint 2010 News Feed portion of My Sites, and I am planning to deploy it to many users.

I am building a console application which will iterate through all of the my sites currently in the system and un-check one of the "Activities I am following' for each user. I have used the example provided at this link(MSDN) to come up with the following code:

 

 Public Class ChangeActivity

 'Reference: http://msdn.microsoft.com/en-us/library/ff426883.aspx'





 Public Shared Sub ChangeActivityProperties()

		Using siteCol As New SPSite((My.Application.CommandLineArgs(0)))

					Dim context As SPServiceContext = SPServiceContext.GetContext(siteCol)

					Dim profileManager As New UserProfileManager(context)

					Dim profile As UserProfile = profileManager.GetUserProfile("THEDOMAIN\username")

					Dim activityMan As ActivityManager = New ActivityManager(profile, context)



					'Create an instance of a list of ActivityPreferencePerType objects.'

					Dim activityPrefsPerType As New List(Of ActivityPreferencePerType)(activityMan.ActivityTypes.Count)

Changed DNS, IIS mappings and AAM for mysite - "My News feed,profile,content" okay but MySite link s

  

Hi,

Sharepoint 2010 enterprise, I created a DNS entry and AAM for MySite - qnetmysite.company.local and all worked okay, then the customer wanted to change the URL used to access my site to "myqnet" so we deleted the DNS entry and recreated a new one. I changed the bindings in IIS and AAM to point to "myqnet.company.local". I can enter http://myqnet.company.local" and navigate to My News feed, My Profile, My content but when I try to navigate to MYSite the URL it takes me to is the old URL qnetmysite.company.local and internet explorer of course can't find the site. I have done an IIS reset, flushed the DNS on the local PC, when I mouse over the MySite link I can see the wrong URL.

Please can somebody help me?

 


News feed: site template?

  

I'm looking to create a top-level site for a site collection (an intranet) in SharePoint 2010. The top-level site is initially (first version) supposed to contain an intranet news feed as well as some links (to external sites and whatnot). Later on (later version), it is desired to add personalization to this site - i.e. user-centered content and the ability for the user to customize the "Home" page to some extent (the News feed should always appear), etc.

I am a bit confused, or rather unsure, of what site template to use?

 I have experience of developing Web Parts (primarily what I've been working with in the SharePoint 2010 platform), but very little experience of setting up sites using as much out of the box functionality as possible. Based on what I've read there was a suitable site template available in SharePoint 2007, but I'm yet to find one for SharePoint 2010. At the moment I'm considering to set up the News feed using the Content Query Web Part. Thankful for any suggestions, tips or hints.

Regards,
Johan Nordholm


Consuming an RSS Feed

  

I'm looking to make a user control to display the 3 most recent posts from a blog on my home page. I've googled around a bit and found a few ways to do this, but none I'm quite satisfied with.

I looked at the XMLDataSource control, but I'm concerned about exception handling. If the remote feed fails, I want to just hide the usercontrol and let the rest of the page display as normal. There seems to be no clean, declarative way to handle this. An OnError event would be nice, especially if it had an e.ExceptionHandled property on the EventArgs object like some of the other DataSource classes.

Scott Guthrie blogged about an RSS Toolkit for .net 2, but that was four years ago and hasn't been updated.

I'm leaning towards Linq to XML, which would probably work fine, but I can't help thinking that there must be a simpler approach to reed RSS feeds since it's such a common problem.

Thanks,

John


Generate rss feed with HTTPHandler

  

Hello,

 

 

I'm looking for link/tutorials/code samples on How to create HttpHandler for generating rss feeds for a website.

 

Br. 

 


Bulletin Board: News from Online Communities

  

This month's column introduces you to Code Project, a vast site of resources for Web development. Code Project is a member of the Microsoft Code Wise Community, a source for tips, code samples, news, and advice from experts outside of Microsoft.

MSDN Magazine August 2004


Good news for those of you who get "Unable to make the session state request to the session state se

  

Dear all,

Due to the known problem of session variables getting lost if using InProc-server during frequent changes in development, I had to choose between SQL and ASP.NET State server, so I opted for the second. Initially, all fine, but after using it for a few days, I started to get this error:

 Server Error in '/cv2' Application.
Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same.  If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.  If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the clie

News web part on MOSS site

  

Hi,

I would like to develop a custom web part to display news which is ahving similar functionality to below link http://timesofindia.indiatimes.com/tech/techhome/5880659.cms

My requirement is as follows

 

The News web part should contain a graphic, article headline and a story introduction with a link to the entire story.  This should contain links to view other articles.  The graphic and highlighted article will automatically rotate among a set number of stories.

 


Breaking news crawing horizontally web part in MOSS site

  

Hi,

I would like to know which approach would be the best to show breaking news which will craws horizontally in MOSS site


Unable to read my RSS feed with XmlReader

  

Hello,

I have an RSS-feed page, which I developed with SyndicationFeed class. The page seems to work, and if I type the url into a browser, a page similar to this opens up: http://msdn.microsoft.com/en-us/magazine/rss/default.aspx

However, I'm unable to read the feed into an XmlReader object. Let's say my rss page is "http://mysite/rss.aspx", and my code in the rss-retriever side is something like this:


XmlReader reader = XmlReader.Create("http://mysite/rss.aspx");

XmlDocument doc = new XmlDocument();

doc.Load(reader);


I get an error on doc.Load(reader) method:

For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method

I've tried to set the ProhibitDtd to false, but then I get some other error.

If I put something like this, I can save the xml dat into a file, and I can see that it's just like it should be:

XmlReader reader = XmlReader.Create("http://mysite/rss.aspx");

SyndicationFeed feed = new SyndicationFeed();
feed.Load(

SharePoint 2010 RSS Feed and Outlook Error

  
When I added an RSS feed from SharePoint 2010 it showed up in IE just fine. When attempting to add the RSS feed whithin outlook, i recieved this error "outlook cannot process the content from http://****.com (the web site) the link may not point to a valid source" Any thoughts?

Displaying Images in an RSS feed web part

  
I have an RSS feed with images. the rss web part doesnt seem to show me these images only the text. its on moss 2007. is there anyway to get these images displaying in the feed. thanksSharepoint Customiser

putting carriage return/line feed in non-HTML email text

  
Using vb.net/asp.net 2005I am trying to create a string message for an email that I am sending out from my asp.net page like so: For Each dr In dtDataTable.Rows strMessage = strMessage & vbCrLf & vbCrLf & Environment.NewLine & dr.Item("UserName") & Environment.NewLine Next so I am looping through a datatable and getting each name from each row, that is working well but when I get the email it appears in my inbox with all the names mashed together, you see I am trying both vbcrlf and newline but looks like neither is workingdoes anyone know what I'm doing wrong?

Consuming RSS Feed using ASP.NET

  
 i'm trying to consume RSS Feed using ASP.NET with c# as followsConsuming RSS Feed using ASP.NET   <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!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 id="Head1" runat="server"><title>RSS Feed</title> </head> <body> <form id="form1" runat="server"> <div> <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile=http://feeds.feedburner.com/mathrubhumiXPath="rss/channel/item"></asp:XmlDataSource> </div> <asp:DataList ID="DataList1" runat="server" DataSourceID="XmlDataSource1" BackColor="White" BorderColor="#404040" BorderStyle="Solid" GridLines="Vertical"> <ItemTemplate> <%#XPath("title")%><br /> <%#XPath("pubDate")%><br /> <%#XPath("author")%><br /><%#XPath("description")%> </ItemTemplate> </asp:DataList> </form> </body> </html>  &nb
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend