How to store Abbreviation name in database sql server Through c# programming -
I have a web form, in this web form I have a text box and a button if I click on a data in the text box Any one can help me write in C # so it's like to have code. If statename = "Andhra Pradesh" then statename = "AP" and if It will come back only to the first 2 characters in the uppercase. Though I'm thinking that your rules should consider the possibility of two or more results with the same short wire Add as "Andhra Pradesh" , then when I click on the button, it stores
"AP" in the database
string test = "Andrpra dais"; String abbreviated = new string (test.Where (t = & gt; char.IsUpper (t)). Take (2) .ToArray ()); Console.WriteLine (abridged);
Comments
Post a Comment