Session return null when empty, so the best way is: MyDataType x = Session["abc"] as MyDataType;. if (x != null)........
確定! 回上一頁