
Untitled
By: a guest on
Jul 4th, 2012 | syntax:
None | size: 0.51 KB | hits: 10 | expires: Never
Dynamically Reference an Object Property Using a String
Dim tmpValue As String
Dim ucAppName As UserControl_appName = CType(Parent.FindControl(strucParam(i).ParentFindControl), UserControl_appName)
tmpValue = ucAppName.FirstName.Text
tmpValue = objObject.GetType().GetProperty(strPropertyName).GetValue(objObject, Nothing)
Dim textBox as TextBox
Dim tmpValue as String
textBox = CType(ucAppName.GetType().GetProperty(strucParam(1).PropertyName).GetValue(objAppNav, Nothing), TextBox)
tmpValue = textBox.Text