Multilingual Applicaiton - Turkish Language Issue
Hi All,
I have a typical problem with the Turkish Language Issue. We are giving support to Turkish Language in our applicaton and it is giving some problem. Am giving you one scenario.
cboSampleCondition.DataSource = dsSampleLookupValues.Tables[1];
cboSampleCondition.DataTextField = dsSampleLookupValues.Tables[1].Columns["LANGUAGETERMDESC"].ToString();
cboSampleCondition.DataValueField = dsSampleLookupValues.Tables[1].Columns["ACTIONSTATUSID"].ToString();
cboSampleCondition.DataBind();
This code binds a datatable to the drop down list.
This code works perfectly all right for Languages like Portugese,Chinese, Thai etc. But when I change te language to Turkish (tr-TR is the culture), I get the error in the below line.
cboSampleCondition.DataValueField = dsSampleLookupValues.Tables[1].Columns["ACTIONSTATUSID"].ToString();
Actually the the column name that's returned from Stored Procedure is "ActionStatusId", but while Checking I am checking as "ACTIONSTATUSID" (All CAPs letters). And it does not search and throws null reference exception.
After much debugging I found that the set of characters "IO" are giving problem. I made it to "io" small case and it was working. Similar scenarion with
cboComponentType.DataValueField = dsSampleLookupValues.Tables[4].Columns["EQUIPMENTTYPEID"].ToString();
Here I found "IP" is creating problem and I made it to "ip" it sr=tarted working.
But I don't think that can be the solution I can give. Because this code will be present in hundreds of pages in our application. There are some other scenarios as well which can create problem like: String Comparison.
Any body has encountered this kind of issue? Is there any application level solution to this?
This is very very urgent issue and any help in this regard is highly appreciated.
|