ASPX templates
Version 7.x > ASPX templates > code behind not recognizing controls View modes: 
User avatar
Peter.Solnet-gmail - 9/16/2013 12:54:21 PM
code behind not recognizing controls
I created a child template from visual studio to manage my kentico template. The template worked fine except that all the controls in it is not accessible from code behind because it is not recognized. I have checked for on line solution but none solved the issue. I even got this link Codebehind file doesn't recognize aspx-controls without any luck since I can't even access the myfile.aspx.designer.cs.

What do I trie again?

Note: My controls are not inside any panel or other control. Just inside a normal div.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/18/2013 2:26:39 AM
RE:code behind not recognizing controls

I would try restarting Visual Studio - it happens sometimes that the intelisense is not loaded correctly.

Another cause could be the ASPX header - CodeFile vs. CodeBehind parameters.

And the last idea I have is to delete the designer file and let VS to generate new one.

Best regards,
Juraj Ondrus