protected void btnSubmit_Click(object sender, EventArgs e)
        {

            int type = int.Parse(ddlapplicationtype.SelectedValue);
            bool usertype = true;
            if (type == 0)
            {
                //vams
                usertype = false;
            }
            else if (type == 1)
            {
                //vdr
                usertype = true;
            }


            DAL.Users users = new DAL.Users();
            
            users.Email = txtemailaddress.Text.Trim();
            users.FirstName = txtFirstName.Text.Trim();
            users.LastName = txtLastName.Text.Trim();
            users.Phone = txtPhone.Text.Trim();
            users.Mobile = txtMobile.Text.Trim();
            users.IsActive = 0;
            users.Designation = txtDesignation.Text.Trim(); ;
            users.ApprovalStatus = 8;
            users.Remarks = txtremarks.Text.Trim();
            users.Department = int.Parse(ddldepartment.SelectedValue);
            users.Empid = txtempid.Text.Trim();
            users.parent_region = int.Parse(ddlparentcostcenter.SelectedValue);

            DataTable GridData = new DAL.Dal().GetSegmentsnamelistbyuser(txtemailaddress.Text);
            string html_RegionAndSegmentsRights = ConvertDataTableToHTML(GridData);


            DataTable list = new DAL.Dal().NewUserEmailNotification(ddlparentcostcenter.SelectedValue, "SignUp Request", 0);
            string recipients = string.Join(";", list.AsEnumerable().Select(r => r.Field<string>("email")));
            //email notification
            //string recipients = string.join(";", list);
            //string recipients = string.Join(";", list.AsEnumerable().Select(r => r.Field<string>("email")));

            string EmailBody =
                "<div style='font-family:SimSun; text-align:justify;'>" +
                "Dear Supervisor,<br><br>" +
                "A user sign-up / access request has been submitted. Please review and recommend it for approval.<br><br>" +
                "<table style='border-collapse: collapse;'>" +
                "<tr>" +
                "    <td style='border: 1px solid #ccc; padding: 5px;'>User Full Name:</td>" +
                "    <td style='border: 1px solid #ccc; padding: 5px;'>" + txtFirstName.Text + " " + txtLastName.Text + "</td>" +
                "</tr>" +
                "<tr>" +
                "    <td style='border: 1px solid #ccc; padding: 5px;'>User Email:</td>" +
                "    <td style='border: 1px solid #ccc; padding: 5px;'>" + txtEmail.Text + "</td>" +
                "</tr>" +
                "<tr>" +
                "    <td style='border: 1px solid #ccc; padding: 5px;'>Contact Number:</td>" +
                "    <td style='border: 1px solid #ccc; padding: 5px;'>" + txtMobile.Text + "</td>" +
                "</tr>" +
                "<tr>" +
                "    <td style='border: 1px solid #ccc; padding: 5px;'>Region:</td>" +
                "    <td style='border: 1px solid #ccc; padding: 5px;'>" + ddlparentcostcenter.SelectedItem.Text + "</td>" +
                "</tr>" +
                "<tr>" +
                "    <td style='border: 1px solid #ccc; padding: 5px;'>User Id:</td>" +
                "    <td style='border: 1px solid #ccc; padding: 5px;'>"+ txtusername.Text + "</td>" +
                  "</tr>" +
                  "<tr>" +
                  "    <td style='border: 1px solid #ccc; padding: 5px;'>Request / Remarks:</td>" +
                  "    <td style='border: 1px solid #ccc; padding: 5px;'>" + txtremarks.Text + "</td>" +
                  "</tr>" +
                  "<tr>" +
                  "    <td style='border: 1px solid #ccc; padding: 5px;'>Application Access:</td>" +
                  "    <td style='border: 1px solid #ccc; padding: 5px;'>" + ddlapplicationtype.SelectedItem.Text + "</td>" +
                  "</tr>" +
                  "</table><br><br>" +
                  "Region(s) & Segment(s):<br>" + html_RegionAndSegmentsRights + @"<br><br>" +
                  "<p style='font-family:SimSun; font-size:14px; text-align:justify;'>This is a system-generated email from VAMS / no-reply account.</p>" +
                  "</div>";

            new DAL.Dal().EmailNotification(recipients, string.Empty, "VAMS Portal User Access Request", EmailBody);
            if (new DAL.Dal().UserProfileModifcation(users, usertype) > 0)
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "ShowModal", "$('#myModal2').modal('show');", true);
                return;
            }
            ScriptManager.RegisterStartupScript(this, this.GetType(), "ShowModal", "$('#myModal2').modal('show');", true);
            return;

        }


jo email body hai wo alag class mai kar dain taka koi changes karni ho to 1 jaga he karna sa ho jiye