コード例 #1
0
 protected void lnkBtnLogout_Click(object sender, EventArgs e)
 {
     try
     {
         HotLeadsBL objHotLeadsBL = new HotLeadsBL();
         DataSet    dsDatetime    = objHotLeadBL.GetDatetime();
         DateTime   dtNow         = Convert.ToDateTime(dsDatetime.Tables[0].Rows[0]["Datetime"].ToString());
         objHotLeadsBL.Perform_LogOut(Convert.ToInt32(Session[Constants.USER_ID]), dtNow, Convert.ToInt32(Session[Constants.USERLOG_ID]), 2);
         Session.Abandon();
         Response.Redirect("Login.aspx");
     }
     catch (Exception ex)
     {
     }
 }