您好如何将会话分配给var ...示例: var kar = Session [“CalenderCount”]; ????????
var kar = Session["CalenderCount"] ;????????
if(session["CalenderCount"]==null)
{
var kar = CALLOBJECT(.....);
Session["CalenderCount"] = kar;
foreach (var i in kareo)
{}
}
else
var kar = Session["CalenderCount"] ;????????
foreach (var i in kar){} // Here Error Comes