I have a load of text boxes on an aspx page whose IDs are prefixed with ‘txt’ the rest of the ID has a corresponding property of the same name in a certain object. I want to be able to enumerate through these string properties and update them where a text box of the same name (with the prefix removed) is found. Any Ideas? I know by using a Dictionary I can get around the problem but it’s not ideal.
I have a load of text boxes on an aspx page whose IDs are
Share
You can do that using reflection: