I need to pass the "true" argument to user control constructor?
Main.cs
UserControl uc = (UserControl)Page.LoadControl(typeof(CallLogControl), new object[] { true });
Error: Exception has been thrown by the target of an invocation.
I'm getting this error, how to resolve it?
USerControl.ascx.cs:
public CallLogControl(bool isCurrentCall)
{
}