chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.Web;
|
||||
using WebLib;
|
||||
|
||||
namespace Education.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// WebService 的基礎類別
|
||||
/// </summary>
|
||||
public class ServiceBase: System.Web.Services.WebService
|
||||
{
|
||||
public string CurrentUserId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (HttpContext.Current != null && HttpContext.Current.Session != null)
|
||||
return DAC.GetString(HttpContext.Current.Session[PublicVariable.UserId]);
|
||||
else
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user