public void load()
        {
            if (Session["UserId"] == null)
            {
                Response.Redirect("Main.aspx");
            }
            else
            {
                us1 = Session["UserId"].ToString();

                DataSet Ds = new DataSet();
                RL.HEmployeeID = us1;
                //Ds = RL.LoginUserDetail(RL);
                //UserName = Ds.Tables[0].Rows[0].ItemArray[2].ToString();
                //M.IDepID = Ds.Tables[0].Rows[0].ItemArray[7].ToString();
                //Ds = M.DepartmetnRepeterView(M);
                //M.Suggestion = Ds.Tables[0].Rows[0].ItemArray[0].ToString();
                MM.CMID = us1.ToString();
                Ds      = MM.HREvalRepView(MM);
                int c = Ds.Tables[0].Rows.Count;
                count.InnerHtml         = c.ToString();
                MailRepeater.DataSource = Ds.Tables[0];
                //MailRepeater.SelectMethod = "IdeaId";
                MailRepeater.DataBind();

                Ds = MM.HREvalRepViewComplete(MM);
                int ccom = Ds.Tables[0].Rows.Count;
                countcom.InnerHtml = ccom.ToString();
                MailRepeatercomplete.DataSource = Ds.Tables[0];
                //MailRepeater.SelectMethod = "IdeaId";
                MailRepeatercomplete.DataBind();
            }
        }
        public void load()
        {
            try
            {
                if (Session["UserId"] == null)
                {
                    Response.Redirect("Main.aspx");
                }
                else
                {
                    us1 = Session["UserId"].ToString();

                    DataSet Ds = new DataSet();
                    RL.HEmployeeID = us1;
                    //Ds = RL.LoginUserDetail(RL);
                    //UserName = Ds.Tables[0].Rows[0].ItemArray[2].ToString();
                    //M.IDepID = Ds.Tables[0].Rows[0].ItemArray[7].ToString();
                    //Ds = M.DepartmetnRepeterView(M);
                    //M.Suggestion = Ds.Tables[0].Rows[0].ItemArray[0].ToString();
                    M.IEmpId = us1.ToString();

                    Ds = M.ManagerSelectRepeterView(M);
                    int c = Ds.Tables[0].Rows.Count;
                    count.InnerHtml         = c.ToString();
                    MailRepeater.DataSource = Ds.Tables[0];
                    //MailRepeater.SelectMethod = "IdeaId";
                    MailRepeater.DataBind();

                    Ds = M.ManagerSelectRepeterViewassigned(M);
                    int cass = Ds.Tables[0].Rows.Count;
                    countass.InnerHtml = cass.ToString();
                    MailRepeaterassigned.DataSource = Ds.Tables[0];
                    //MailRepeater.SelectMethod = "IdeaId";
                    MailRepeaterassigned.DataBind();

                    Ds = M.ManagerSelectRepeterViewcomplete(M);
                    int ccom = Ds.Tables[0].Rows.Count;
                    countcom.InnerHtml = ccom.ToString();
                    MailRepeatercomplete.DataSource = Ds.Tables[0];
                    //MailRepeater.SelectMethod = "IdeaId";
                    MailRepeatercomplete.DataBind();

                    Ds = M.ManagerSelectRepeterViewhold(M);
                    int chol = Ds.Tables[0].Rows.Count;
                    counthol.InnerHtml          = chol.ToString();
                    MailRepeaterhold.DataSource = Ds.Tables[0];
                    //MailRepeater.SelectMethod = "IdeaId";
                    MailRepeaterhold.DataBind();

                    Ds = M.ManagerSelectRepeterViewReject(M);
                    int crej = Ds.Tables[0].Rows.Count;
                    countrej.InnerHtml            = crej.ToString();
                    MailRepeaterreject.DataSource = Ds.Tables[0];
                    //MailRepeater.SelectMethod = "IdeaId";
                    MailRepeaterreject.DataBind();

                    FromDateTextBox.Text = System.DateTime.Now.Date.ToString("dd-MM-yyyy");
                    ToDateTextBox.Text   = System.DateTime.Now.Date.AddDays(30).ToString("dd-MM-yyyy");

                    TeamDetailView();
                }
            }
            catch (Exception e1)
            {
            }
        }