I have an application with the FrontEnd separated into one Project file and the Codebehind/classes separated into a completely different class library. What I need is a way to, from the UserControl Type, obtain it's VirtualPath.
Typically, we would have this in code
Board uc = (Board)Page.LoadControl(@"~\Board.ascx");
But I want is something like this
Board uc = (Board)Page.LoadControl(Board.VirtualPath);
OR
Board uc = Page.LoadControl(Board);
Anyone have an idea how I can accomplish this? Thanks in advance