A
AC
I am loading a user control specified by the user using
this.Page.LoadControl([path]). This control will have multiple public
properties. If it has a public property, I need to get the name of it, and
the current value of it so I can present dynamically generated textboxes and
allow the the user to set the values. Then, as implied, I need to be able to
set the values of these properties.
I've tried getting the type of the loaded control, then using the
GetProperties and stepping through the PropertyInfo collection, but I keep
getting errors when I try to set the values. Ideas? Any code samples out
there where someone is doing this?
this.Page.LoadControl([path]). This control will have multiple public
properties. If it has a public property, I need to get the name of it, and
the current value of it so I can present dynamically generated textboxes and
allow the the user to set the values. Then, as implied, I need to be able to
set the values of these properties.
I've tried getting the type of the loaded control, then using the
GetProperties and stepping through the PropertyInfo collection, but I keep
getting errors when I try to set the values. Ideas? Any code samples out
there where someone is doing this?