Designer.cs没有更新时,新的控件添加为.aspx [英] Designer.cs not updating when new controls added to .aspx

查看:383
本文介绍了Designer.cs没有更新时,新的控件添加为.aspx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了一个新的控制,以我的aspx文件,发现不但没有添加到设计文件中的新的控制,但它也缺少相当的团队的其他成员添加的一些其他控件。我试着删除designer.cs文件,并使用转换为Web应用程序,但没有成功。一些其他的事情我已经试过被排除在项目建设ASPX,然后再包括没有成功。我还手动那是设计师到设计缺少一个控制输入。当我运行后,这样做的一个错误出现说没有定义的控制,即使它实际上是,和我应该检查,如果我错过了一个指令。

I've added a new control to my aspx files and noticed that not only was the new control not added to the designer file but that it was also missing quite a few other controls that were added by other members of the team. I've tried deleting the designer.cs file and using "Convert to Web Application" with no success. Some other things i've tried have been excluding the aspx from the project, building, and then re-including with no success. I've also manually entered in a control that was missing in the designer into the designer. When I run after do so an error appears saying the control isn't defined, even though it actually is, and that I should check if I'm missing a directive.

我添加的第一个控制是复制和从类似的控制粘贴,并提出必要的修改。但是,我也试着手动创建具有相同的结果控制。

The first control I added was copy and paste from a similar control and made necessary changes. But, i've also tried manually creating the control with the same results.

任何想法?

推荐答案

我在我的工作受到了这个问题。

I've been suffered this problem in my work.

最可靠的是你重新生成了.Designer.cs文件,<一个href=\"http://web.archive.org/web/20130809003352/http://www.undermyhat.org/blog/2009/07/tip-regenerate-aspx-designer-cs-files-when-corrupted\"相对=nofollow>此处是解决方案。

The surest thing is you regenerate your .designer.cs file, and here is the solution.

这篇关于Designer.cs没有更新时,新的控件添加为.aspx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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