Can I initialize a usercontrol from a physical location rather than a virtual path ?
running the following line of code ..
formControl = new Page().LoadControl(@"C:\base\Platform\Core\Solution\Project\Package\Control\UserControl1.ascx"); throws an exception
at System.Web.Util.UrlPath.FailIfPhysicalPath(String path)\r\n at System.Web.Util.UrlPath.Combine(String basepath, String relative)\r\n at System.Web.UI.TemplateControl.LoadControl(String virtualPath)\r\n at Project.Base.Page.LoadControl(MetaData metaData) in c
Obviously, Page.LoadControl expects a virtual path rather than a physical path.
Now, why do I need the physical path rather tha ...
Go to the complete details ...