Last post Aug 27, 2013 02:10 AM by prathap.rrc
Aug 27, 2013 01:44 AM|prathap.rrc|LINK
I have a problem in creating classes in c#. whenever i create a new class, the Buil Action property of the class is selected as 'content'. So i could not use any other class names within the class. Also i get errors when building the class. To get rid of
this issue i always change this property to 'Complie'. This process i do every time when creating a class. Is this the normal way of creating class or is there any problem in my approach in creating classes?
Aug 27, 2013 02:03 AM|MetalAsp.Net|LINK
You're creating these classes in app_code right? And you have a Web application project: in this type of project the app_code folder doesn't have the special meaning it does with website projects.
So just create a different folder in your solution, call it classes for example, and create your classes there. You'll be set.
Aug 27, 2013 02:10 AM|prathap.rrc|LINK
Thanks alot. i did as you said and it worked fine.