I renamed the filename aspx but now I cannot get to the controls from the cs file

I renamed the aspx file name, but now I cannot get to the controls from the cs file. I deleted the designer.cs file and created by right clicking on the aspx file with Convert To Web Application. But still can't find the controls while I press Ctrl + Space (intellisense code).

+1


a source to share


2 answers


Make sure that the property CodeBehind

in the directive @Page

points to a file .cs

and that the property is Inherits

pointing to the correct class name in the file .cs

.



+3


a source


you need to check the codebehind property as well as the inherieted property which should be the class you defined in the .cs file



0


a source







All Articles