I'm working on a DNN skin using Christoc's DNN templates and when I create a normal ASP.NET control on my home.ascx file, I'm unable to reference it in the code behind.
I know that on normal web projects, the aspx.designer.cs file controls all that but I don't know how to generate one for a .ascx file or if that's even how it should work in a DNN skin.
How do I reference an ASP.NET control from the code behind in a DNN skin template?
Here's the control I'm trying to access:
My Account
And the code behind:
namespace Company.Modules.CompanySkin2019
{
public partial class Home : SkinBase
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
UserInfo currUserInfo = UserController.Instance.GetCurrentUserInfo();
hlAccountSettings.NavigateUrl = Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "Profile", "userId=" + currUserInfo.UserID, "pageno=1");
// ^ ERROR: The name 'hlAccountSettings' does not exist in the current context
}
}
}
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)