ASP.NET controls cannot be referenced in code-behind in Visual Studio 2008

前端 未结 16 1423
面向向阳花
面向向阳花 2020-12-25 12:28

Ok, so, my visual studio is broken. I say this NOT prematurely, as it was my first response to see where I had messed up in my code. When I add controls to the page I can\'t

16条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-25 12:36

    we cannot change the code when the application is running .To do so first click on the stop button on the top which will halt your application .now click on the button in design mode ,it will insert the code in .aspx.cs file ,then write the code in it

提交回复
热议问题