I have a Class with several properties called Priority1, Priority2,Priority3....through Priority11 Each has a Get/Set construct
Public Property Priority1 As Integer
Set(value As Integer)
pPriority1 = value
When saving from my code behind, I want to set the property with a variable something like this:
For i = 1 To 11
ti = "txtPriority" & i
Dim li = "Priority" & i
tb = DirectCast(RowItem.Cells(1).FindControl(ti), TextBox)
lRefactoring.li = tb.Text **** This is the line that is not working
Is there anyway to set the property with a variable?
Thank you for any help.