how do i include a class file?

  • Thread starter Thread starter Kuldeep
  • Start date Start date
K

Kuldeep

Hello All,

Framework: Visual Studio 2005
I have a class file in my project with a namespace nmArticles
Now, I need to add this namespace into my article.aspx.cs page
so that i can accesss the methods available in the class file under the
namespace nmArticles
How do i do this??
Apparently, the method we use to call a class file in VS 2003 is not
working.
Is there anything that i am going wrong with?
Please help

Regards,
Kuldeep
 
Kuldeep,
If you are using the WebSite solution arrangement as opposed to a Web
Application Project, you will probably need to have an APP_CODE folder and
put your class file there.
Peter
 
Peter,
Thanks for the response.
Even after doing that, I cant access the methods under that class
Am i missing something?

Kuldeep
 
Putting the class file in the App_code folder doesn't change it's
namespace. You still have to specify the full class name or import the
namespace.
 
Thanks Goran!
Its working now
Kuldeep
Göran Andersson said:
Putting the class file in the App_code folder doesn't change it's
namespace. You still have to specify the full class name or import the
namespace.
 
Back
Top