简体   繁体   English

从ASP.NET网页使用C#文件

[英]Using C# file from an ASP.NET web page

I may have a small problem defining what I ask but I'll do my best: I built an ASP.NET website and I want to use Microsoft Azure. 我可能在定义我的要求时遇到了一个小问题,但我会尽力而为:我建立了一个ASP.NET网站,并且希望使用Microsoft Azure。 So I defined in a C# class file an object that extends TableServiceEntity. 因此,我在C#类文件中定义了一个扩展TableServiceEntity的对象。 I'm trying to get the code behind page of a certain webpage to know this type of class. 我正在尝试获取某个网页的页面后面的代码以了解此类。 But I can't seem to find the right way to do it. 但是我似乎找不到正确的方法。 I guess it has to do with some Using. 我想这与某些Using有关。

It is in the same project as the webpage in a different folder. 它与网页在同一项目中,位于不同的文件夹中。 Thanks, 谢谢,

I solved this issue adding Namespace to my C# class. 我解决了将命名空间添加到C#类的问题。 The first solution I found was to move it too AppCode but that is the same as giving it a namespace. 我发现的第一个解决方案是也将其移动到AppCode,但这与为其命名空间相同。

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM