asp.net - how to set text property assigned to the control created dynamically usiong reflection?-C# -
How to set text properties assigned to the dynamically created usiong reflection?
type type = Type.GetType (strFullName); Object instance = Activator Create Instance (Type); CtrlTemp = (Control) Example; CtrlTemp.ID = "Hello"; CtrlTemp.Text ??? Panel1.Controls.Add (ctrlTemp);
: sets the value of the property with optional index values for index properties .
propertyInfoPiInstance = typeof (example) .GetProperty ("InstanceProperty"); PiInstance.SetValue (Examination, 37, blank);
Comments
Post a Comment