在asp.net网站的app_code文件夹外部访问Class. [英] Access Class outside the app_code Folder in asp.net website.

查看:87
本文介绍了在asp.net网站的app_code文件夹外部访问Class.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专家,
我在asp.net中有一个网站(即不是网站应用程序),并且已经在Employee网站中创建了一个文件夹,并且在Employee Folder中创建了一个Class Person.现在我想在后面的代码中的default.aspx页面中访问此person类.

Hi Experts,
I have a website in asp.net (i.e not a website application) and i have create a folder inside the website Employee and inside the Employee Folder i have create a Class Person. now i want to access this person class in default.aspx page in code behind.

WebSite
  |
  |---Employee
  |        |
  |        |___Person.cs
  |
  |----Default.aspx.cs.

"I create object of Person in side the default.aspx.cs"



但是无法访问人员类别.


谢谢
Dinesh Sharma



But person class is not accessed.


Thanks
Dinesh Sharma

推荐答案

确保您的课程是公开的.您应该可以访问它.
Make sure your class is public. You should be able to access it.


这篇关于在asp.net网站的app_code文件夹外部访问Class.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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