Search ID of control for a substring


/ Published in: C#
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. string Assignee = (rbList.ID.IndexOf("Spouse") == -1) ? "Member" : "Spouse";

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.