Click here to Skip to main content
14,642,090 members
Home » Discussions » ASP.NET
   

ASP.NET

 
QuestionRe: the Labelling of a polygon in asp.net Pin
ZurdoDev7-Sep-16 0:46
mveZurdoDev7-Sep-16 0:46 
AnswerRe: the Labelling of a polygon in asp.net Pin
planet067-Sep-16 0:52
Memberplanet067-Sep-16 0:52 
QuestionRe: the Labelling of a polygon in asp.net Pin
ZurdoDev7-Sep-16 0:54
mveZurdoDev7-Sep-16 0:54 
AnswerRe: the Labelling of a polygon in asp.net Pin
planet067-Sep-16 1:17
Memberplanet067-Sep-16 1:17 
GeneralRe: the Labelling of a polygon in asp.net Pin
ZurdoDev7-Sep-16 1:57
mveZurdoDev7-Sep-16 1:57 
GeneralRe: the Labelling of a polygon in asp.net Pin
planet067-Sep-16 2:00
Memberplanet067-Sep-16 2:00 
AnswerRe: the Labelling of a polygon in asp.net Pin
planet067-Sep-16 0:54
Memberplanet067-Sep-16 0:54 
Questioncompare string with a list of strings Pin
Member 117814552-Sep-16 22:40
MemberMember 117814552-Sep-16 22:40 
Need to compare a string with a list of strings condition space and case insensitive.

sample code :

public class COMProjectNameValidator:IValidator
 {

      MessageInfo _MessageInfo = new MessageInfo();
      public void Validate(object obj, MessageList MessageList)
      {
           COMProjectDTO _COMProjectDTO=(COMProjectDTO)obj;
           if (DAOUtil.IsValuePersisted(typeof(COMProjectEntity), "Id", _COMProjectDTO.COMProjectId) == false)
           {
               IGenericExtnDAO<COMProjectEntity> IGenericExtnCOMProjectLoadDAO = DAOFactory.Instance.GetGenericDAO<COMProjectEntity>();
               List<COMProjectEntity> _COMProjectEntityList = IGenericExtnCOMProjectLoadDAO.FindAll().Where(t => t.COMBranch!= null && t.COMBranch.Id == _COMProjectDTO.COMBranchId).ToList();


//if (_COMProjectEntityList.Select(t => t.ProjectName).ToList().Contains(_COMProjectDTO.ProjectName))
                //{
                //    MessageInfo _MessageInfo = new MessageInfo(KEYS.COM_Project_Name_ALREADY_EXIST, AlertMessageTypeEnum.Error);
                //    MessageList.Add(_MessageInfo);
                //}
            }
            else
            {
                IGenericExtnDAO<COMProjectEntity> IGenericExtnCOMProjectLoadDAO = DAOFactory.Instance.GetGenericDAO<COMProjectEntity>();
                COMProjectEntity _COMProjectEntity = IGenericExtnCOMProjectLoadDAO.Get(_COMProjectDTO.COMProjectId);
                if (_COMProjectEntity.ProjectName != _COMProjectDTO.ProjectName)
                {
                    IGenericExtnDAO<COMProjectEntity> IGenericExtnCOMProjectLoadDAOForExist = DAOFactory.Instance.GetGenericDAO<COMProjectEntity>();
                    List<COMProjectEntity> _COMProjectEntityList = IGenericExtnCOMProjectLoadDAO.FindAll().Where(t => t.COMBranch!= null && t.COMBranch.Id == _COMProjectDTO.COMBranchId).ToList();
                    if (_COMProjectEntityList.Select(t => t.ProjectName).ToList().Contains(_COMProjectDTO.ProjectName))
                    {
                        MessageInfo _MessageInfo = new MessageInfo(KEYS.COM_Project_Name_ALREADY_EXIST, AlertMessageTypeEnum.Error);
                        MessageList.Add(_MessageInfo);
                    }
                }

            }
           }

       }

QuestionRe: compare string with a list of strings Pin
ZurdoDev6-Sep-16 4:15
mveZurdoDev6-Sep-16 4:15 
AnswerRe: compare string with a list of strings Pin
Member 1178145517-Sep-16 1:10
MemberMember 1178145517-Sep-16 1:10 
GeneralRe: compare string with a list of strings Pin
ZurdoDev17-Sep-16 3:13
mveZurdoDev17-Sep-16 3:13 
GeneralRe: compare string with a list of strings Pin
Member 1178145518-Sep-16 20:17
MemberMember 1178145518-Sep-16 20:17 
GeneralRe: compare string with a list of strings Pin
ZurdoDev19-Sep-16 0:39
mveZurdoDev19-Sep-16 0:39 
Questionado.net Pin
subbaahrao30-Aug-16 19:23
Membersubbaahrao30-Aug-16 19:23 
AnswerRe: ado.net Pin
Richard MacCutchan30-Aug-16 21:03
mveRichard MacCutchan30-Aug-16 21:03 
AnswerRe: ado.net Pin
ZurdoDev6-Sep-16 8:34
mveZurdoDev6-Sep-16 8:34 
QuestionAjax error handling logic Pin
dcof27-Aug-16 7:29
Memberdcof27-Aug-16 7:29 
GeneralRe: Ajax error handling logic Pin
Richard MacCutchan27-Aug-16 20:33
mveRichard MacCutchan27-Aug-16 20:33 
GeneralRe: Ajax error handling logic Pin
dcof29-Aug-16 6:17
Memberdcof29-Aug-16 6:17 
GeneralRe: Ajax error handling logic Pin
Richard MacCutchan29-Aug-16 6:28
mveRichard MacCutchan29-Aug-16 6:28 
AnswerRe: Ajax error handling logic Pin
Nathan Minier29-Aug-16 1:40
professionalNathan Minier29-Aug-16 1:40 
AnswerRe: Ajax error handling logic Pin
2374131-Aug-16 14:44
Member2374131-Aug-16 14:44 
GeneralRe: Ajax error handling logic Pin
Nathan Minier1-Sep-16 1:01
professionalNathan Minier1-Sep-16 1:01 
GeneralRe: Ajax error handling logic Pin
237411-Sep-16 6:17
Member237411-Sep-16 6:17 
GeneralRe: Ajax error handling logic Pin
Nathan Minier1-Sep-16 8:25
professionalNathan Minier1-Sep-16 8:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.