Visual Studio Not Connecting Designer to Code Behind

后端 未结 3 1468
甜味超标
甜味超标 2021-01-21 00:33

I started using VisualStudio 2013 last week, and have loved it. But I was primarily coding controllers and JavaScript. However, when I add a control to a Webform inside of a W

3条回答
  •  清歌不尽
    2021-01-21 01:26

    It happens sometimes when ASPX and designer are out of sync.

    Sometime just saving the ASPX file Ctrl+S solves the problem.

    The worst case you can delete the individual xxx.designer.cs, and recreate it by using Convert to Web Application

    Visual Studio 2012

    enter image description here

    Updated for Visual Studio 2013

    In VS 2013, Convert to Web Application is moved under Project.

    enter image description here

提交回复
热议问题