how do i include a class file?

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
 
G

Guest

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
 
K

Kuldeep

Peter,
Thanks for the response.
Even after doing that, I cant access the methods under that class
Am i missing something?

Kuldeep
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

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.
 
K

Kuldeep

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top