开发者

How do I fix ASP.NET Error CS0103

What causes the ASP.NET Err开发者_如何学运维or CS0103? I get that error saying that Label01 can not be found in the current context` when I try to compile the project.

What is causing it?


Make sure you have a control with that name in the page, and that it is included in the .designer file. If not, then add it or remove it as needed.

The designer sometimes gets out of sync with the page's markup. Alternatively, right-click on the page that's causing the error and select 'Convert to Web Application' to force a sync.


Also try the following fix,

Delete the .vs directory beside your solution, as it might have invalid data cached.

Source

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜