I have a database field with data such as this:
76,60,12
If I want to remove, for example, 60, what do I have to do?
The number to be removed could be any place. I also need to remove the comma, if needed.
I’m using .NET 2.0.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would split the string on a comma, remove the element and then join the string again. Hopefully this all works in .NET 2.0: