在当前上下文中不存在控制 [英] Control does not exist in current context

查看:81
本文介绍了在当前上下文中不存在控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题。应用程序中确实存在两个控件,即文本框和下拉列表。 IntelliSense检测到它。但是当我编译它时会给出错误,即当前上下文中不存在这两个控件。但程序运行正常,值得更新。任何人都可以帮我在编译过程中避免这个错误吗?



提前谢谢

Raj

I have a strange problem. Two controls, viz., Text Box and dropdown list do exist in the application. IntelliSense detects it. But when I compile it gives error that these two controls do not exist in the current context. But the programs run correctly and values get updated. Can any one help me to avoid this error during compilation?

Thanks in advance
Raj

推荐答案

尝试清理解决方案,然后 build / rebuild 解决方案。



-KR
Try to clean the solution, and then build/rebuild the solution.

-KR


这篇关于在当前上下文中不存在控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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