System.Security.Permissions.SecurityPermission and Reflection on Godaddy
- by David Murdoch
I have the following method:
public static UserControl LoadControl(string UserControlPath, params object[] constructorParameters)
{
var p = new Page();
var ctl = p.LoadControl(UserControlPath) as UserControl;
// Find the relevant constructor
if (ctl != null)
{
ConstructorInfo constructor =…