Select to view content in your preferred language

Query task on a mixed case field :

470
0
12-06-2013 08:56 AM
srikanthpilli
Emerging Contributor
Hi,

I am performing a query task for a layer whose display field is LINENAME.

This filed LINENAME has attributes in mixed case lettera. For example one of the atrribute is "Stone Yard".

As of now, only if I enter the attribute name as "Stone Yard" - which is as it is in the layer's non spatial data - it works, but with
mix of upper and lower case like "STone YARD"  or "STONE YARD" or "stone yard" doesn't work.


Please let me know what updates I have to do  for the below statement.

txtRailline is the text box for the user to enter the LINENAME attribute :


query5.Where = "LINENAME ='" + txtRailline.Text.ToString(). + "'" 


Thanks for going through the message and providing your inputs.
0 Kudos
0 Replies