Get a value from string array by search id

I have a list of values in an array Cmnts like

“6_12_g2_text”:”22″,”6_12_g3_text”:”33″,”6_12_g4_text”:”44″

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