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();
}
}
}
全站熱搜