我正在尝试填充会话,如果它的null,在null检查时得到错误
public static int ReportGroupId()
{
if (System.Web.HttpContext.Current.Session["ReportGroupId"] == null) <ERROR HERE>
System.Web.HttpContext.Current.Session["ReportGroupId"] = BL.Reporting.GET.ReportGroupId();
return Convert.ToInt32(System.Web.HttpContext.Current.Session["ReportGroupId"]);
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1355 次 |
最近记录: |