tbrentlong
Programmer
I need to programatically load a control so that I can set properties and have it rendered appropriately. However, when I attempt to LoadControl, I get the following error:
"An object reference is required for the nonstatic field, method, or property
'System.Web.UI.TemplateControl.LoadControl(string)'
//the line:
protected Header ucHeader = (Header)LoadControl("uc/Header.ascx"
Any suggestions?
"An object reference is required for the nonstatic field, method, or property
'System.Web.UI.TemplateControl.LoadControl(string)'
//the line:
protected Header ucHeader = (Header)LoadControl("uc/Header.ascx"
Any suggestions?