public static CMtestDataPassers CMChecking(string cmid)
        {
            ManagerMaster     M   = new ManagerMaster();
            DataBankManager   DBM = new DataBankManager();
            Employee          E   = new Employee();
            CMtestDataPassers tdp = new CMtestDataPassers();

            //Console.Write(emp);
            //Console.Write("My first ASP script!");
            try
            {
                try
                {
                    if ((cmid != "") && (cmid != "System.Data.DataRowView"))
                    {
                        CMID = cmid.ToString().Trim();
                        Console.Write(cmid);

                        DBM.CMID = cmid.ToString().Trim();

                        DataSet DS = new DataSet();
                        DS = DBM.CommitteeIDsearch(DBM);

                        tdp.empid   = DS.Tables[0].Rows[0].ItemArray[1].ToString();
                        tdp.empname = DS.Tables[0].Rows[0].ItemArray[1].ToString();
                        //SIDepID = DS.Tables[0].Rows[0].ItemArray[2].ToString();
                        tdp.Department = DS.Tables[0].Rows[0].ItemArray[2].ToString();
                        //SIDesID = DS.Tables[0].Rows[0].ItemArray[3].ToString();
                        tdp.Designation = DS.Tables[0].Rows[0].ItemArray[3].ToString();

                        tdp.DupCheck = DS.Tables[0].Rows[0].ItemArray[5].ToString();
                        if (tdp.DupCheck != "Other")
                        {
                            tdp.Memberof = DS.Tables[0].Rows[0].ItemArray[4].ToString();
                        }
                        else
                        {
                            tdp.Memberof = DS.Tables[0].Rows[0].ItemArray[5].ToString();
                            tdp.Other    = DS.Tables[0].Rows[0].ItemArray[4].ToString();
                        }

                        tdp.ErrorLabel = "0";
                    }

                    else if (cmid == "")
                    {
                        tdp.ErrorLabel = "Check the Committee ID ";
                    }
                    else
                    {
                        tdp.ErrorLabel = "1";
                    }
                }
                catch (Exception ex)
                {
                    tdp.ErrorLabel = "1";
                }
                return(tdp);
            }
            catch (Exception ex)
            {
                throw new Exception("Error Initializing Data Class." + Environment.NewLine + ex.Message);
            }
        }