Click here to Skip to main content
15,897,187 members
Articles / Web Development / ASP.NET

Blog integration into ASP.NET website using GData API

Rate me:
Please Sign up or sign in to vote.
5.00/5 (6 votes)
16 Jul 2012CPOL3 min read 38.3K   2.5K   13  
Content Managemnt of asp.net website using Blogger Blog and Google GDI API
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Incede.blogger.TestProject._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 runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    </div>
    <h2 style="font-family: Verdana; font-size: large; color: #3399FF">
        This project will retrieve the blog entries from a blogspot blog. These can be directly
        integrated into your website for news feed pages, announcements and update pages.
        This allows for a static website to be updated and content managed from a blog (such as incedeit.blogspot.com)</h2>
    <br />
    <div style="font-size: large; color: #0066FF; font-family: Verdana; " > Recent Company NEWS :
     <asp:Label ID="lblblogname"  ForeColor="Orange"  runat="server" Text=""></asp:Label><br /><br />
     </div>
     
     
    <asp:DataList ID="DataListBlog" runat="server" CellPadding="4" ForeColor="#333333" >
        <ItemTemplate>
            <asp:Label ID="Label1"    ForeColor ="DarkOrchid" Font-Bold="true" Font-Underline="true"  runat="server"  Text='<%# DataBinder.Eval(Container.DataItem, "Title") %>'></asp:Label>
            <br />
            <br />
            <asp:Label ID="Content1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Content") %>'></asp:Label>
            <br />
            (<asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "footer")%>'></asp:Label>)
            <hr />
        </ItemTemplate>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
        <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    </asp:DataList>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
Lead Enterprise Application development and architecture using Asp.net/C#/Ajax/SSIS with back end databases like Ms-SQL, Oracle.

You can contact me at suhel.shah@gmail.com

Comments and Discussions