zoukankan      html  css  js  c++  java
  • Label Web Part for SharePoint Portal Server 2003 [Source Codes in C#]

    Label Web Part for SharePoint Portal Server 2003

     

    This web part acts like an ASP.Net label control. You can display a message or any texts on the SharePoint Web page.

     

    As a good note, you can enter HTML codes in the displayed label text. For example,

    Welcome to my blog: <a href=”http://www.cnblogs.com/rickie”>www.cnblogs.com</a>

    <br>

    Email: <a href=”mailto:rickieleemail@yahoo.com”>rickieleemail@yahoo.com</a>

     

    The following code shows a portion of above web part.

    protected Label lblDisplay;

     

    /// <summary>

    /// The required ASP.Net Label control is added to the controls collection of the web part

    /// by overriding the CreateChildControls method of the base class.

    /// </summary>

    protected override void CreateChildControls()

    {

                lblDisplay = new Label();

                lblDisplay.Width = Unit.Percentage(100);

                lblDisplay.Height = labelHeight;

                lblDisplay.Text = displayText;

     

                this.Controls.Add(lblDisplay);

    }

    Download source codes:
    https://files.cnblogs.com/rickie/LableWebPart.zip

    The following picture is a sample of label web part displayed on the SharePoint web page.

  • 相关阅读:
    Tarjan算法与割点割边
    kmp匹配
    最小表示法
    字典树
    哈希
    网络流入门浅谈
    关于两道搜索的题目
    2020 4.2校内测题解
    LIS最长上升子序列讲解&&洛谷P1439 【模板】最长公共子序列 题解
    浅谈拉格朗日插值公式
  • 原文地址:https://www.cnblogs.com/rickie/p/25804.html
Copyright © 2011-2022 走看看