codebehind文件无法识别的aspx的控件 [英] Codebehind file doesn't recognize aspx-controls

查看:155
本文介绍了codebehind文件无法识别的aspx的控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我给出的aspx / C#编写的webproject。当我装它到Visual Studio 2010中,我得到了很多的错误,告诉我​​,在code-隐藏文件一些控件没有在目前的情况下存在。

I was given a webproject written with aspx/c#. When I loaded it into Visual Studio 2010, I got many error telling me that some controls in the code-behind files do not exist in the current context.

我检查的常见问题,如错code-隐藏文件名,失踪 RUNAT -attribute,重启VS,重新加载项目,但没有解决错误

I checked for the common pitfalls, like wrong code-behind file name, missing runat-attribute, restart VS, reload project, yet nothing resolves the error.

还有什么我能做的检查问题出在哪里?

What else can I do to check where the problem is?

推荐答案

CUDOS为@ 03Usr下面的链接带来的答案是:

Cudos to @03Usr the following link brought the answer:

<一个href=\"http://stackoverflow.com/questions/38670/asp-net-controls-cannot-be-referenced-in-$c$c-behind-in-visual-studio-2008\">ASP.NET控制不能在$ C $在Visual Studio中引用C-背后2008

删除所有设计师文件,并转换项目ALS Web应用程序所带来的设计文件后面,有效地使控件再次引用的。

Deleting all designer files and converting the project als web application brought the designer files back, effectively making the controls referenceable again.

这篇关于codebehind文件无法识别的aspx的控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆