protected void btnUpdate_Click(object sender, EventArgs e)
    {
        try
        {
            DA_Marketing damar          = new DA_Marketing();
            BE_Clients   beviewselected = new BE_Clients();
            BA_Clients   baClnt         = new BA_Clients();

            beviewselected.Company = txtCompanyName.Text;
            if (ddlCategory.SelectedItem.Text == "----------Select----------")
            {
                beviewselected.Category = "";
            }
            else
            {
                beviewselected.Category = ddlCategory.SelectedItem.Text.ToString();
            }
            beviewselected.Website      = txtWebSite.Text;
            beviewselected.Addressline1 = txtAdd1.Text;
            if (ddlLocation.SelectedItem.Text == "--Select--")
            {
                beviewselected.State = "";
            }
            else
            {
                if (ddlLocation.SelectedItem.Text == "--OTHER--")
                {
                    beviewselected.State = txtNewLoaction.Text.ToString();
                }
                else
                {
                    beviewselected.State = ddlLocation.SelectedItem.Text.ToString();
                }
            }



            beviewselected.Zip     = txtZip.Text;
            beviewselected.Contact = txtContact.Text;
            beviewselected.Phone   = txtContactNumber.Text;
            beviewselected.Mobile  = txtMobile.Text;
            beviewselected.Email   = txtEmail.Text;
            beviewselected.MemID   = MemID;

            damar.updateCliensDetails(beviewselected);

            ds = daHir.getClientView(MemID);
            dlMemInfo.DataSource = ds;
            dlMemInfo.DataBind();
        }
        catch (Exception ex)
        {
        }
    }