Click here to Skip to main content
15,886,639 members
Articles / Web Development / CSS

MyStream: Social Lifestreaming with ASP.NET 4.0

Rate me:
Please Sign up or sign in to vote.
4.91/5 (65 votes)
11 Aug 2009CPOL18 min read 89.1K   1.3K   121  
Turn your current static website or blog into a lifestreaming portal with all your social activities with ASP.NET 4.0, C# 4.0, PLINQ, Task Parallel Library, Dependency Injection, and plug-in architecture.
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="DefaultPage.master.cs" Inherits="MyStreamWeb.DefaultPage" %>

<%@ Import Namespace="MyStream.Business" %>
<%@ Import Namespace="MyStream.Data" %>

<!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>
    <script src="../Scripts/Framework.js"></script>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>

    <div id="wrapper">
    	<div id="header">    
    		<div id="logo">
                
                <%
                    var siteInfo = new Facade().CurrentSiteInfo;
                %>
            
    			<h1><a href="Default.aspx"><%= siteInfo.SiteTitle %></a></h1>
    			<h2><a href="javascript:;"><%= siteInfo.SiteSlogan %></a></h2>
    		</div>
    		<!-- end div#logo -->
    		<div id="menu">
                <asp:ContentPlaceHolder runat="server" ID="MenuContentPlaceHolder"></asp:ContentPlaceHolder>
    		</div>
    		<!-- end div#menu -->
    	</div>
    	<!-- end div#header -->
    	<div id="page">
    		<div id="page-bgtop">
    			<div id="content">
                    <asp:ContentPlaceHolder runat="server" ID="MainContentPlaceHolder"></asp:ContentPlaceHolder>
    			</div>
    			<!-- end div#content -->
    			<div id="sidebar">
                    <asp:ContentPlaceHolder runat="server" ID="SidebarContentPlaceHolder"></asp:ContentPlaceHolder>
    			</div>
    			<!-- end div#sidebar -->
    			<div style="clear: both; height: 1px"></div>
    		</div>
    	</div>
    	<!-- end div#page -->
        
    	<div id="footer">
    		<p id="legal">Copyright &copy; 2009 <a href="http://TanzimSaqib.com">Tanzim Saqib</a>. All Rights Reserved. | CSS: <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
            <p>Free for personal use. Just link to me on the Footer.</p>
            <p>For commercial distribution or use, please email me at "me at TanzimSaqib.com" to get a license that does not require you to include links to me.</p>         
    	</div>
    	<!-- end div#footer -->
        
    </div>

</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
Software Developer (Senior) British Telecom, Telerik, Pageflakes
Bangladesh Bangladesh

Tanzim Saqib is a Software Designer, video podcaster and Microsoft “MVP” in ASP.NET, who spent half of his life with software. He has been helping British Telecom build next generation SaaS portals. He builds Web 2.0 for Business architectures for 3.5 million BT Business users and complex widget ecosystem and CMS Framework for all the SaaS subsystems in BT.



In 6 years in the industry, he worked for companies like .NET controls provider Telerik, personalized Web 2.0 start-page Pageflakes, SaaS based CMS provider Sitemasher in Canada as well as total University Automation for AIUB. He started programming at 12, since then he developed many applications ranging from desktop utilities to banking solution for CitiBank, Wells Fargo, HSBC and so on. He is also a Technical Reviewer at Addison-Wesley Professional and technology speaker.


While he is not jamming with the latest technologies, he contributes to open source projects, writes articles for the community, and blogs. He holds a bachelor degree in Computer Science.


Comments and Discussions