Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

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

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


But person class is not accessed.


Thanks
Dinesh Sharma
Posted
Updated 21-Feb-12 22:33pm
v2

1 solution

Make sure your class is public. You should be able to access it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900