小编use*_*909的帖子

To Check Session is null or not

In the below code I have Session variable in which I want to check whether it is null or not. Please help me to do this. (SearchDoc) is class.

var SearchDoc = (SearchDoc)Session["Documentname"];
var oDocumentID = SearchDoc.ClientID;
var Documentid = SearchDoc.DocumentID;

if (SearchDoc == null)
{

}
Run Code Online (Sandbox Code Playgroud)

c# asp.net session-variables

0
推荐指数
1
解决办法
4040
查看次数

标签 统计

asp.net ×1

c# ×1

session-variables ×1