Get a value from string array by search id

I have a list of values in an array Cmnts like


var CmntsValue = forms["textvalue"];    
string[] Cmnts = CmntsValue.Split('{','}');

No I want to search for 6_12_g2_text and return 22 (for 6_12_g3_text and return 33). How can i achieve this?

Source: .net

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.