Click here to Skip to main content
15,885,878 members
Articles / Programming Languages / C#

Thought of the Day Web Part

Rate me:
Please Sign up or sign in to vote.
3.75/5 (5 votes)
19 Jun 2010CPOL2 min read 32.9K   309   7  
Thought of the day web part for SharePoint 2010 server
<%@ Assembly Name="TOTD, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5a88317d8f4f1462" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="VisualWebPart1UserControl.ascx.cs" Inherits="TOTD.VisualWebPart1.VisualWebPart1UserControl" %>
<style type="text/css">
    .style1
    {
        width: 409px;
    }
    .style2
    {
        width: 100px;
    }
    .style3
    {
        height: 16px;
    }
</style>
<table class="style1">
    <tr>
        <td rowspan="2" class="style2">
<asp:Image ID="ImgAuthor" runat="server" Height="100px" Width="100px" />
        </td>
        <td valign="top" class="style3">
<asp:Label ID="lblTOTD" runat="server" Font-Italic="True" Font-Names="Calibri" 
                Font-Size="12pt" 
                style="z-index: 1; left: 120px; top: 29px;  width: 376px" 
                ForeColor="#003399"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="right" valign="top">
<asp:Label ID="lblAuthor" runat="server" Font-Names="Calibri" Font-Size="9pt" style="z-index: 1; left: 239px; top: 97px; text-align:right; height: 13px; width: 252px">Lalith Gallage</asp:Label>

        </td>
    </tr>
</table>





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) Sri Lanka Telecom
Sri Lanka Sri Lanka
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions