I am encountering this error when I create a visual web part in Visual Studio 2012:
the name 'initializecontrol' does not exist in the current context visual studio 2013
Edit 1: the error appears in this line of code in .ascx.cs file:
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
InitializeControl();
}
And there is no .g.cs file.
I have seen some blogs or posts, but they are not helping me with this issue. I have installed Updates 4 for visual studio. Hope to hear from you guys.