R
Raja
//I have a case sensitive problem with contains method.
//When using SQL database as here:
MERADATADataContext DC = new MERADATADataContext();
IQueryable<DVD> results = from dvd in DC.DVDs
where dvd.Title.Contains(txtTitle.Text.Trim())
select dvd;
//then Contains method works fine:
//================================================
//But when using XML as:
XElement doc = XElement.Load(fileName);
var results = from h in doc.Descendants("XXX")
where h.Element("YYY").Value.Contains(strYYY)
...
//then Contains method is case sensitive. Probably it is because XML
is case sensitive.
//If true, then what is the work around to find data case
insensitively?
Thanks in advance
Raja
//When using SQL database as here:
MERADATADataContext DC = new MERADATADataContext();
IQueryable<DVD> results = from dvd in DC.DVDs
where dvd.Title.Contains(txtTitle.Text.Trim())
select dvd;
//then Contains method works fine:
//================================================
//But when using XML as:
XElement doc = XElement.Load(fileName);
var results = from h in doc.Descendants("XXX")
where h.Element("YYY").Value.Contains(strYYY)
...
//then Contains method is case sensitive. Probably it is because XML
is case sensitive.
//If true, then what is the work around to find data case
insensitively?
Thanks in advance
Raja