May 5, 2010 7:27PM
I've created a Twitter search widget for BlogEngine.NET. This widget displays the results of a search rather than a specific user's tweets. What you're seeing here on my blog is the widget configured to search for ‘planetdonovan’. It's a bit of a challenge writing code for ASP.NET 2.0 when you've gotten used all the new C# language features, but you can still get everything done.
The source code is available for download here. If you make improvements or have fun using it, please let me know.
Imaginary.TwitterSearch.7z (4.18 kb)
UPDATE May 10, 2010: Added relative time setting. Please grab newer version from here.
April 30, 2010 10:24PM
I have been using a modified version of the BlogEngine.NET Twitter widget that I got from Al Bsharah, but noticed that it doesn't correctly create the link for Twitter user names that contain an underscore.
An easy fix for this is to modify line 354 of his widget.ascx.cs file to include an underscore in the regular expression:
private static readonly Regex regex2 = new Regex("@[a-zA-Z0-9_]*",
RegexOptions.Compiled | RegexOptions.IgnoreCase);
UPDATE May 1, 2010: The original has now been updated.