如何在程序中包含名称空间? [英] how to include a namespace in a program?

查看:80
本文介绍了如何在程序中包含名称空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家早上好.我已经使用ASP .Net(文件C#后面的代码)创建了一个网页.我在一个名称空间中编写了一个网页,在另一个名称空间中编写了另一个网页.我必须将一个网页名称空间包含在另一个名称空间中.这个怎么做?请解释完整的程序吗?请执行此操作.

解决方案

如果您不了解C#的最基本知识,则不应该编写网页.

using语句将作用于您的命名空间,尽管如果那些不同的命名空间仅用于不同的页面,则绝对没有理由这样做,您不能从另一个页面调用一个页面.


Good morning to everyone. I have created a web pages using ASP .Net(code behind file C#). I have written one web page in one namespace and another in another namespace. I have to include the one web page namespace in another one. How to do this? Explain the complete procedure for this? Please do this.

解决方案

You should not be writing web pages if you don''t know the most basic things about C#.

The using statement will scope your namespaces, although if those different namespaces are only used for different pages, there is absolutely no reason to do this, you can''t call one page from another.


这篇关于如何在程序中包含名称空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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