Click here to Skip to main content
15,887,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

i have create a web Project in vs 2010, and make a folder in App_Code, DAC and Model.
in DAC create Class A and Model Create class B.
and create a web form Default.aspx.
in Default.aspx.vb i want to call Class A And B.

Please help me
Posted
Updated 30-Sep-12 21:15pm
v2

Hi Dinesh,

Please make your class A and B public and after that can create the object of the class in any page. By default C# class access are private.
 
Share this answer
 
Comments
DINESH K MAURYA 1-Oct-12 3:25am    
Dear Mukhtar
i have make it public
but when u create View Class Diagram then there is no class show
i have create in 2008 and its working fine but this problem is vs 2010.
try by defining it public static. You can do one thing more. You have to add reference of your class or project where you want to access.
 
Share this answer
 
Make the classes as public and you should add namespace of the class in the Default.aspx.vb

All the Best
Gopinath Natarajan
 
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