Esempio n. 1
0
        protected void grdUserName_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if ((e.Row.RowType == DataControlRowType.DataRow) && (e.Row.RowState == DataControlRowState.Normal || e.Row.RowState == DataControlRowState.Alternate))
            {
                try
                {
                    Label lblId = (Label)e.Row.FindControl("lblId");
                    if (lblId != null)
                    {
                        try
                        {
                            lblId.Text = ML_Common.string2Eclips(lblId.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblId.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblUserNameId = (Label)e.Row.FindControl("lblUserNameId");
                    if (lblUserNameId != null)
                    {
                        try
                        {
                            lblUserNameId.Text = ML_Common.string2Eclips(lblUserNameId.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblUserNameId.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblUserName = (Label)e.Row.FindControl("lblUserName");
                    if (lblUserName != null)
                    {
                        try
                        {
                            lblUserName.Text = ML_Common.string2Eclips(lblUserName.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblUserName.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblFirstName = (Label)e.Row.FindControl("lblFirstName");
                    if (lblFirstName != null)
                    {
                        try
                        {
                            lblFirstName.Text = ML_Common.string2Eclips(lblFirstName.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblFirstName.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblLastName = (Label)e.Row.FindControl("lblLastName");
                    if (lblLastName != null)
                    {
                        try
                        {
                            lblLastName.Text = ML_Common.string2Eclips(lblLastName.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblLastName.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblEmail = (Label)e.Row.FindControl("lblEmail");
                    if (lblEmail != null)
                    {
                        try
                        {
                            lblEmail.Text = ML_Common.string2Eclips(lblEmail.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblEmail.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblTelephone = (Label)e.Row.FindControl("lblTelephone");
                    if (lblTelephone != null)
                    {
                        try
                        {
                            lblTelephone.Text = ML_Common.string2Eclips(lblTelephone.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblTelephone.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblMobile = (Label)e.Row.FindControl("lblMobile");
                    if (lblMobile != null)
                    {
                        try
                        {
                            lblMobile.Text = ML_Common.string2Eclips(lblMobile.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblMobile.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblRemarks = (Label)e.Row.FindControl("lblRemarks");
                    if (lblRemarks != null)
                    {
                        try
                        {
                            lblRemarks.Text = ML_Common.string2Eclips(lblRemarks.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblRemarks.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblPassword = (Label)e.Row.FindControl("lblPassword");
                    if (lblPassword != null)
                    {
                        try
                        {
                            lblPassword.Text = ML_Common.string2Eclips(lblPassword.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblPassword.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblUserTypeId = (Label)e.Row.FindControl("lblUserTypeId");
                    if (lblUserTypeId != null)
                    {
                        try
                        {
                            lblUserTypeId.Text = ML_Common.string2Eclips(lblUserTypeId.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblUserTypeId.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblUserType = (Label)e.Row.FindControl("lblUserType");
                    if (lblUserType != null)
                    {
                        try
                        {
                            lblUserType.Text = ML_Common.string2Eclips(lblUserType.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblUserType.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblReTryAttempt = (Label)e.Row.FindControl("lblReTryAttempt");
                    if (lblReTryAttempt != null)
                    {
                        try
                        {
                            lblReTryAttempt.Text = ML_Common.string2Eclips(lblReTryAttempt.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblReTryAttempt.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblIsLocked = (Label)e.Row.FindControl("lblIsLocked");
                    if (lblIsLocked != null)
                    {
                        try
                        {
                            lblIsLocked.Text = ML_Common.string2Eclips(lblIsLocked.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblIsLocked.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblLockedDateTime = (Label)e.Row.FindControl("lblLockedDateTime");
                    if (lblLockedDateTime != null)
                    {
                        try
                        {
                            lblLockedDateTime.Text = ML_Common.string2Eclips(lblLockedDateTime.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblLockedDateTime.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblIsActive = (Label)e.Row.FindControl("lblIsActive");
                    if (lblIsActive != null)
                    {
                        try
                        {
                            lblIsActive.Text = ML_Common.string2Eclips(lblIsActive.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblIsActive.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblIsArchive = (Label)e.Row.FindControl("lblIsArchive");
                    if (lblIsArchive != null)
                    {
                        try
                        {
                            lblIsArchive.Text = ML_Common.string2Eclips(lblIsArchive.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblIsArchive.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblCreatedDate = (Label)e.Row.FindControl("lblCreatedDate");
                    if (lblCreatedDate != null)
                    {
                        try
                        {
                            lblCreatedDate.Text = ML_Common.string2Eclips(lblCreatedDate.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblCreatedDate.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblCreatedBy = (Label)e.Row.FindControl("lblCreatedBy");
                    if (lblCreatedBy != null)
                    {
                        try
                        {
                            lblCreatedBy.Text = ML_Common.string2Eclips(lblCreatedBy.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblCreatedBy.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblModifiedDate = (Label)e.Row.FindControl("lblModifiedDate");
                    if (lblModifiedDate != null)
                    {
                        try
                        {
                            lblModifiedDate.Text = ML_Common.string2Eclips(lblModifiedDate.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblModifiedDate.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblModifiedBy = (Label)e.Row.FindControl("lblModifiedBy");
                    if (lblModifiedBy != null)
                    {
                        try
                        {
                            lblModifiedBy.Text = ML_Common.string2Eclips(lblModifiedBy.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblModifiedBy.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }
                }
                catch (Exception ex)
                {
                    Exception exx = ex;
                }
            }


            if ((e.Row.RowType == DataControlRowType.DataRow) && (e.Row.RowState == DataControlRowState.Edit || (e.Row.RowState == (DataControlRowState.Edit | DataControlRowState.Alternate))))
            {
                try
                {
                    Label lblIdEdit = (Label)e.Row.FindControl("lblIdEdit");
                    if (lblIdEdit != null)
                    {
                        try
                        {
                            lblIdEdit.Text = ML_Common.string2Eclips(lblIdEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblIdEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblUserNameIdEdit = (Label)e.Row.FindControl("lblUserNameIdEdit");
                    if (lblUserNameIdEdit != null)
                    {
                        try
                        {
                            lblUserNameIdEdit.Text = ML_Common.string2Eclips(lblUserNameIdEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblUserNameIdEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblUserNameEdit = (Label)e.Row.FindControl("lblUserNameEdit");
                    if (lblUserNameEdit != null)
                    {
                        try
                        {
                            lblUserNameEdit.Text = ML_Common.string2Eclips(lblUserNameEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblUserNameEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblFirstNameEdit = (Label)e.Row.FindControl("lblFirstNameEdit");
                    if (lblFirstNameEdit != null)
                    {
                        try
                        {
                            lblFirstNameEdit.Text = ML_Common.string2Eclips(lblFirstNameEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblFirstNameEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblLastNameEdit = (Label)e.Row.FindControl("lblLastNameEdit");
                    if (lblLastNameEdit != null)
                    {
                        try
                        {
                            lblLastNameEdit.Text = ML_Common.string2Eclips(lblLastNameEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblLastNameEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblEmailEdit = (Label)e.Row.FindControl("lblEmailEdit");
                    if (lblEmailEdit != null)
                    {
                        try
                        {
                            lblEmailEdit.Text = ML_Common.string2Eclips(lblEmailEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblEmailEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblTelephoneEdit = (Label)e.Row.FindControl("lblTelephoneEdit");
                    if (lblTelephoneEdit != null)
                    {
                        try
                        {
                            lblTelephoneEdit.Text = ML_Common.string2Eclips(lblTelephoneEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblTelephoneEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblMobileEdit = (Label)e.Row.FindControl("lblMobileEdit");
                    if (lblMobileEdit != null)
                    {
                        try
                        {
                            lblMobileEdit.Text = ML_Common.string2Eclips(lblMobileEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblMobileEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblRemarksEdit = (Label)e.Row.FindControl("lblRemarksEdit");
                    if (lblRemarksEdit != null)
                    {
                        try
                        {
                            lblRemarksEdit.Text = ML_Common.string2Eclips(lblRemarksEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblRemarksEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblPasswordEdit = (Label)e.Row.FindControl("lblPasswordEdit");
                    if (lblPasswordEdit != null)
                    {
                        try
                        {
                            lblPasswordEdit.Text = ML_Common.string2Eclips(lblPasswordEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblPasswordEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblUserTypeIdEdit = (Label)e.Row.FindControl("lblUserTypeIdEdit");
                    if (lblUserTypeIdEdit != null)
                    {
                        try
                        {
                            lblUserTypeIdEdit.Text = ML_Common.string2Eclips(lblUserTypeIdEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblUserTypeIdEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblUserTypeEdit = (Label)e.Row.FindControl("lblUserTypeEdit");
                    if (lblUserTypeEdit != null)
                    {
                        try
                        {
                            lblUserTypeEdit.Text = ML_Common.string2Eclips(lblUserTypeEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblUserTypeEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblReTryAttemptEdit = (Label)e.Row.FindControl("lblReTryAttemptEdit");
                    if (lblReTryAttemptEdit != null)
                    {
                        try
                        {
                            lblReTryAttemptEdit.Text = ML_Common.string2Eclips(lblReTryAttemptEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblReTryAttemptEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblIsLockedEdit = (Label)e.Row.FindControl("lblIsLockedEdit");
                    if (lblIsLockedEdit != null)
                    {
                        try
                        {
                            lblIsLockedEdit.Text = ML_Common.string2Eclips(lblIsLockedEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblIsLockedEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblLockedDateTimeEdit = (Label)e.Row.FindControl("lblLockedDateTimeEdit");
                    if (lblLockedDateTimeEdit != null)
                    {
                        try
                        {
                            lblLockedDateTimeEdit.Text = ML_Common.string2Eclips(lblLockedDateTimeEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblLockedDateTimeEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblIsActiveEdit = (Label)e.Row.FindControl("lblIsActiveEdit");
                    if (lblIsActiveEdit != null)
                    {
                        try
                        {
                            lblIsActiveEdit.Text = ML_Common.string2Eclips(lblIsActiveEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblIsActiveEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblIsArchiveEdit = (Label)e.Row.FindControl("lblIsArchiveEdit");
                    if (lblIsArchiveEdit != null)
                    {
                        try
                        {
                            lblIsArchiveEdit.Text = ML_Common.string2Eclips(lblIsArchiveEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblIsArchiveEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblCreatedDateEdit = (Label)e.Row.FindControl("lblCreatedDateEdit");
                    if (lblCreatedDateEdit != null)
                    {
                        try
                        {
                            lblCreatedDateEdit.Text = ML_Common.string2Eclips(lblCreatedDateEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblCreatedDateEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblCreatedByEdit = (Label)e.Row.FindControl("lblCreatedByEdit");
                    if (lblCreatedByEdit != null)
                    {
                        try
                        {
                            lblCreatedByEdit.Text = ML_Common.string2Eclips(lblCreatedByEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblCreatedByEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblModifiedDateEdit = (Label)e.Row.FindControl("lblModifiedDateEdit");
                    if (lblModifiedDateEdit != null)
                    {
                        try
                        {
                            lblModifiedDateEdit.Text = ML_Common.string2Eclips(lblModifiedDateEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblModifiedDateEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }


                    Label lblModifiedByEdit = (Label)e.Row.FindControl("lblModifiedByEdit");
                    if (lblModifiedByEdit != null)
                    {
                        try
                        {
                            lblModifiedByEdit.Text = ML_Common.string2Eclips(lblModifiedByEdit.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblModifiedByEdit.Text = string.Empty;
                            Exception exx = ex;
                        }
                    }
                }
                catch (Exception ex)
                {
                    Exception exx = ex;
                }
            }
        }
        protected void grdSanitizationReport_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if ((e.Row.RowType == DataControlRowType.DataRow))// && (e.Row.RowState == DataControlRowState.Normal || e.Row.RowState == DataControlRowState.Alternate))
            {
                try
                {
                    #region fields
                    //Label lblDateAndTime = (Label)e.Row.FindControl("lblDateAndTime");
                    Label lblSanitizationStartDate = (Label)e.Row.FindControl("lblSanitizationStartDate");
                    Label lblSanitizationEndDate   = (Label)e.Row.FindControl("lblSanitizationEndDate");

                    Label lblTagStatus        = (Label)e.Row.FindControl("lblTagStatus");
                    Label lblHoldTimeInMinute = (Label)e.Row.FindControl("lblHoldTimeInMinute");

                    try
                    {
                        if (lblTagStatus != null && lblSanitizationEndDate != null && lblHoldTimeInMinute != null)
                        {
                            lblTagStatus.ForeColor        = Color.White;
                            lblHoldTimeInMinute.ForeColor = Color.White;
                            if (ML_Common.string2Decimal(lblHoldTimeInMinute.Text) >= 5 && !string.IsNullOrEmpty(lblSanitizationEndDate.Text))
                            {
                                lblTagStatus.Text         = "Pass";
                                e.Row.Cells[11].BackColor = Color.Green;
                                e.Row.Cells[12].BackColor = Color.Green;
                            }
                            else
                            {
                                lblTagStatus.Text         = "Fail";
                                e.Row.Cells[11].BackColor = Color.Red;
                                e.Row.Cells[12].BackColor = Color.Red;
                            }
                        }
                    }
                    catch (Exception ex)
                    {
                        Exception exc = ex;
                    }


                    Label lblIsConfirm = (Label)e.Row.FindControl("lblIsConfirm");
                    if (lblIsConfirm != null)
                    {
                        try
                        {
                            if (!string.IsNullOrEmpty(lblIsConfirm.Text))
                            {
                                if (lblIsConfirm.Text.Trim() == "1" || lblIsConfirm.Text.Trim().ToLower() == "true")
                                {
                                    lblIsConfirm.ForeColor    = Color.White;
                                    lblIsConfirm.Text         = "Completed";
                                    e.Row.Cells[13].BackColor = Color.Green;
                                }
                                else
                                {
                                    lblIsConfirm.ForeColor    = Color.White;
                                    lblIsConfirm.Text         = "Pending";
                                    e.Row.Cells[13].BackColor = Color.Red;
                                }
                            }
                            else
                            {
                                lblIsConfirm.ForeColor    = Color.White;
                                lblIsConfirm.Text         = "Pending";
                                e.Row.Cells[13].BackColor = Color.Red;
                            }
                        }
                        catch (Exception ex)
                        {
                            Exception exc = ex;
                        }
                    }

                    Label lblRemarks = (Label)e.Row.FindControl("lblRemarks");
                    if (lblRemarks != null)
                    {
                        try
                        {
                            lblRemarks.Text = ML_Common.string2Eclips(lblRemarks.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblRemarks.Text = string.Empty;
                            Exception exc = ex;
                        }
                    }

                    #endregion
                }
                catch (Exception ex)
                {
                    Exception exc = ex;
                }
            }
        }
Esempio n. 3
0
        protected void grdCokeSupplier_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if ((e.Row.RowType == DataControlRowType.DataRow) && (e.Row.RowState == DataControlRowState.Normal || e.Row.RowState == DataControlRowState.Alternate))
            {
                try
                {
                    Label lblCokeSupplier = (Label)e.Row.FindControl("lblCokeSupplier");
                    if (lblCokeSupplier != null)
                    {
                        try
                        {
                            lblCokeSupplier.Text = ML_Common.string2Eclips(lblCokeSupplier.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblCokeSupplier.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblAddress1 = (Label)e.Row.FindControl("lblAddress1");
                    if (lblAddress1 != null)
                    {
                        try
                        {
                            lblAddress1.Text = ML_Common.string2Eclips(lblAddress1.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblAddress1.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblAddress2 = (Label)e.Row.FindControl("lblAddress2");
                    if (lblAddress2 != null)
                    {
                        try
                        {
                            lblAddress2.Text = ML_Common.string2Eclips(lblAddress2.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblAddress2.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblAddress3 = (Label)e.Row.FindControl("lblAddress3");
                    if (lblAddress3 != null)
                    {
                        try
                        {
                            lblAddress3.Text = ML_Common.string2Eclips(lblAddress3.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblAddress3.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblCityName = (Label)e.Row.FindControl("lblCityName");
                    if (lblCityName != null)
                    {
                        try
                        {
                            lblCityName.Text = ML_Common.string2Eclips(lblCityName.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblCityName.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblStateName = (Label)e.Row.FindControl("lblStateName");
                    if (lblStateName != null)
                    {
                        try
                        {
                            lblStateName.Text = ML_Common.string2Eclips(lblStateName.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblStateName.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblPinCode = (Label)e.Row.FindControl("lblPinCode");
                    if (lblPinCode != null)
                    {
                        try
                        {
                            lblPinCode.Text = ML_Common.string2Eclips(lblPinCode.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblPinCode.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblTitle = (Label)e.Row.FindControl("lblTitle");
                    if (lblTitle != null)
                    {
                        try
                        {
                            lblTitle.Text = ML_Common.string2Eclips(lblTitle.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblTitle.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblCountryName = (Label)e.Row.FindControl("lblCountryName");
                    if (lblCountryName != null)
                    {
                        try
                        {
                            lblCountryName.Text = ML_Common.string2Eclips(lblCountryName.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblCountryName.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblContactPerson = (Label)e.Row.FindControl("lblContactPerson");
                    if (lblContactPerson != null)
                    {
                        try
                        {
                            lblContactPerson.Text = ML_Common.string2Eclips(lblContactPerson.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblContactPerson.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblMobNo = (Label)e.Row.FindControl("lblMobNo");
                    if (lblMobNo != null)
                    {
                        try
                        {
                            lblMobNo.Text = ML_Common.string2Eclips(lblMobNo.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblMobNo.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblWebSite = (Label)e.Row.FindControl("lblWebSite");
                    if (lblWebSite != null)
                    {
                        try
                        {
                            lblWebSite.Text = ML_Common.string2Eclips(lblWebSite.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblWebSite.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblEmail = (Label)e.Row.FindControl("lblEmail");
                    if (lblEmail != null)
                    {
                        try
                        {
                            lblEmail.Text = ML_Common.string2Eclips(lblEmail.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblEmail.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }


                    Label lblRemarks = (Label)e.Row.FindControl("lblRemarks");
                    if (lblRemarks != null)
                    {
                        try
                        {
                            lblRemarks.Text = ML_Common.string2Eclips(lblRemarks.Text, 30);
                        }
                        catch (Exception ex)
                        {
                            lblRemarks.Text = string.Empty;
                            Exception exc = ex;// Exception exc=ex;// LogManager.LogManager.WriteErrorLog(ex);
                        }
                    }
                }
                catch (Exception ex)
                {
                    Exception exc = ex;// LogManager.LogManager.WriteErrorLog(ex);
                }
            }
        }