web 2.0

FeedBurner Syndication Widget for BlogEngine.NET

Hi,

Here is a simple FeedBurner Syndication Widget for BlogEngine.NET

Here is the "Very" Simple Code :)

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Specialized;

public partial class widgets_Syndication_widget : WidgetBase
{

    public override string Name
    {
        get { return "Syndication"; }
    }

    public override bool IsEditable
    {
        get { return true; }
    }

    public override void LoadWidget()
    {
        StringDictionary settings = GetSettings();
        String contents = String.Empty;
        if (settings.ContainsKey("Contents"))
        {
            contents = settings["Contents"];
        }
        this.ltContents.Text = contents;
    }
}

To Install it download and extract the file at the end of this post and copy the Syndication directory to ~/widgets of your BlogEngine.NET web site.

The Add it to your SideBar and Copy/Paste your FeedBurner Button Link as the Following Sample :

<br/>
<p style="text-align: center">
    <a href="http://feeds.feedburner.com/sb2/JSrW">
        <img style="border-style: initial; border-color: initial; border-width: 0px" 
        src="http://feeds.feedburner.com/[YOURFEED]?bg=FF66300&amp;fg=444444&amp;anim=1" alt="" width="88" height="26" />
    </a>
</p>

 



Views(1077)

kick it on DotNetKicks.com

Share/Save/Bookmark Subscribe

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

ASP.NET | C#

Comments

Add comment


 

biuquote
Loading



Technorati Profile