Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
string s1 = "2,3,4,5";string s2 = "4";string newone = str.Replace(s2 + ",", "");
string s1 = "2,3,4,5"; string s2 = "4"; List<string> result = s1.Split(new char[] { ',' }).ToList(); result.Remove(s2); string output = string.Join(",", result.ToArray());
1) string myString = s1.Remove(s1.IndexOf(s2),s2.Length+1); 2) string myString = s1.Replace(s2 + ",", "");
IT KNOWLEDGE IS APPLIED KNOWLEDGE So Just Do It
Login to post response