close

寫給UserControl 用的basePage

不用繼承太多UTIL,USER登入相關資訊寫一寫

嗯....目前這樣夠用了  :P

 

 

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// bp_UC 的摘要描述
/// </summary>
public partial class bp_UC : System.Web.UI. UserControl
{
                 public bp_UC()
                {
                                 //
                                 // TODO: 在這裡新增建構函式邏輯
                                 //
                }



    protected virtual string bp_UserID
    {
        get
        {


            if (Session["User_ID" ] == null) return "";

            if (string .IsNullOrEmpty(Session["User_ID"].ToString()))
                return "" ;
            else
                return Session["User_ID" ].ToString();
        }
    }


}
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 11 的頭像
    11

    冠霖的部落格

    11 發表在 痞客邦 留言(0) 人氣()