Posted By

housecor on 09/08/10


search control find

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Search ID of control for a substring

 / Published in: C#

So if the ID contains the word Spouse, do x.

  1. string Assignee = (rbList.ID.IndexOf("Spouse") == -1) ? "Member" : "Spouse";

Report this snippet  

You need to login to post a comment.