ASP.NET控件不能在$ C $在Visual Studio 2008中引用C-背后 [英] ASP.NET controls cannot be referenced in code-behind in Visual Studio 2008

查看:158
本文介绍了ASP.NET控件不能在$ C $在Visual Studio 2008中引用C-背后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

确定,所以,我的Visual Studio是坏了。我这样说不是pmaturely $ P $,因为它是看到我在我的code搞砸了我的第一个反应。当我控件添加到页面,我不能引用他们都在code后面。他们中的一些,我可以,好像是第几我把一个网页的工作,那么它只是停止。

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 reference all of them in the code behind. Some of them I can, it seems that the first few I put on a page work, then it just stops.

我首先想到的可能是控制的类型,最初我是想引用一个更新面板内的中继器。我知道我正确地引用了code后面在我的aspx页面。但是为了以防万一它是我的一个螺丝后,我开始从头开始重新创建页面,这时候有几个控制下来之前停止VS认识我的控制。

I first thought it may be the type of control as initially I was trying to reference a repeater inside an update panel. I know I am correctly referencing the code behind in my aspx page. But just in case it was a screw up on my part I started to recreate the page from scratch and this time got a few more controls down before VS stopped recognizing my controls.

两次创造我的网页,并卡住我想也许它仍然控件的类型之后。我创建了一个新的一页,只是把它的一些标签。没有骰子,构建引用从后面code中的控件时失败。

After creating my page twice and getting stuck I thought maybe it was still the type of controls. I created a new page and just threw some labels on it. No dice, build fails when referencing the control from the code behind.

在可能无关的音符,当我切换到aspx页面VS 2008的错误并重新启动的可怕的设计模式。

In a possibly unrelated note when I switch to the dreaded "design" mode of the aspx pages VS 2008 errors out and restarts.

我已经把麻烦票给微软。我卸载了所有的加载项,我重新安装了视觉工作室。

I have already put a trouble ticket in to Microsoft. I uninstalled all add-ins, I reinstalled visual studio.

任何人想要看到我的code就问,但我采用了直板所见即所得的可视化工作室新的aspx页面没有什么特别的。

Anyone that wants to see my code just ask, but I am using the straight WYSIWYG visual studio "new aspx page" nothing fancy.

我怀疑任何人遇到了这一点,但你?

I doubt anyone has run into this, but have you?

任何人都有成功的故障排除这些事情与微软?任何方式加速这一票不付?我一直在讲,从微软的代表没有运气天还和我在水中死亡。

Has anyone had success trouble shooting these things with Microsoft? Any way to expedite this ticket without paying??? I have been talking to a rep from Microsoft for days with no luck yet and I am dead in the water.

感谢您。


乔恩Limjap:我编辑的标题既要明确和描述的的确保没有人看到它作为进攻。 富-禁止并不完全构成一个适当的问题的标题,虽然你的问题显然是一个有效的。

Jon Limjap: I edited the title to both make it clear and descriptive and make sure that nobody sees it as offensive. "Foo-barred" doesn't exactly constitute a proper question title, although your question is clearly a valid one.

推荐答案

尝试清除您的本地缓存VS。找到你的项目,并删除该文件夹。该文件夹是由VS是什么原因我真的不明白创建。但我已经好几次在这里清除,并做了重新构建修复的事情......希望这是所有你需要为好。

try clearing your local VS cache. find your project and delete the folder. the folder is created by VS for what reason I honestly don't understand. but I've had several occasions where clearing it and doing a re-build fixes things... hope this is all that you need as well.

在这里

%Temp%\VWDWebCache

和可能在这里

%LocalAppData%\Microsoft\WebsiteCache

这篇关于ASP.NET控件不能在$ C $在Visual Studio 2008中引用C-背后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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