S
ShaunN
I have created a number of web user controls within a Web Control Library called Blain.UQR.WebControls.
I have a separate ASP.NET Web Application in which I want to use these controls. A reference to the Blain.UQR.WebControls dll is included in my ASP.NET Web Application project.
The problem is that I cannot figure out how to dynamically load controls from the Blain.UQR.WebControls library.
Of course, the standard way of dynamically including a user web control into a page is to use the LoadControl method. However, this takes the file name of the control as a parameter. For example:
Dim ctl as Control
ctl = LoadControl("/UserControls/myusercontrol.ascx")
Since the web user controls are simply included in the project via a Reference to the Blain.UQR.Webcontrols dll, I do not know how I am supposed to dynamically load them, since the .ascx files are not available.
Could anyone suggest how this might be done?
Thanks a lot,
Shaun
I have a separate ASP.NET Web Application in which I want to use these controls. A reference to the Blain.UQR.WebControls dll is included in my ASP.NET Web Application project.
The problem is that I cannot figure out how to dynamically load controls from the Blain.UQR.WebControls library.
Of course, the standard way of dynamically including a user web control into a page is to use the LoadControl method. However, this takes the file name of the control as a parameter. For example:
Dim ctl as Control
ctl = LoadControl("/UserControls/myusercontrol.ascx")
Since the web user controls are simply included in the project via a Reference to the Blain.UQR.Webcontrols dll, I do not know how I am supposed to dynamically load them, since the .ascx files are not available.
Could anyone suggest how this might be done?
Thanks a lot,
Shaun