Create IE8 Webslice for Google Blogger (Blogspot)

Internet Explorer 8 is the most innovative browser we ever had. Web Slicing is one of the key developer feature introduced in IE8. One can find lot of examples on building dynamic Web Slices. However this code will let the Blogger (blogspot) users to create an IE8 Web Slice for thier Blogs.


Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text
Imports Google.GData.Client
Imports System.Net
Imports System.Xml
Imports System.Text.RegularExpressions

Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim query As New FeedQuery
Dim feed As AtomFeed
feed = Nothing
Dim Service As New Service(“_Default”, “IE8-Addons”)
query.Uri = New Uri(“”)
feed = Service.Query(query)
Dim htm As String
Dim itr As String
Dim Slice As String
For Each AtomEntry In feed.Entries
itr = itr & “<a href=” & AtomEntry.AlternateUri.ToString & “> ” & AtomEntry.Title.Text.ToString & “</a></br></br>”
Slice = “<div id=1> <h2-title>My Blog Title</h2> <div-content> <abbr title=15></abbr>”
htm = “<html><head><title>My Blog Title</title></head><body>” & Slice & itr & “</div></div></body></html>”
End Sub
End Class


The example disscues on how to create a WebSlice for Blogger(Blogspot). You are required to do the following steps:-

1) Use the Above Given VB.NET Code

2) Download the Google Library for Blogger

3) In the VB.NET You are required to make the following changes:-

3a) Dim Service As New Service(“Default”, “IE8-Addons”) (Default is the name of my class; IE8-Addons is the name for the Website Project) – Replace as per requirement.

3b) Replace Your BlogId Number with mine (XXXXXXX) in the “”

3c) Replace My Blog Title (String) in the code with Your Web Slice / Blog Title.

This is a simple code to create WebSlice for Blogger, It uses Google API for Blogger, specifically the DLL uploaded. It Create’s a Service Object and Queries for Feed specifying the particular Blog using ID and fetching records as per record. The the later lines generate HTML for the WebSlice and concats the Last three Blog Posts titles and giving the Hyperlink to their specific URLs.