页面和用户控件的名称相同 [英] Same name for page and usercontrol

查看:93
本文介绍了页面和用户控件的名称相同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在页面中使用相同的名称和用户控件(VB.net)?



请建议我。

Is it possible to give same name to a page and a usercontrol using in that page(VB.net) ?

Please suggest me.

推荐答案

不,除非它们位于不同的命名空间中。



如果您尝试声明页面和控件相同的名称,系统将不会知道你的意思比你想要的更多!
No, not unless they are in separate namespaces.

If you try to declare a page and a control with the same name, the system won't know which you meant any more than you would!


这篇关于页面和用户控件的名称相同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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