Utility Class

J

Jim Heavey

I am trying to create a "Utility" class which will house common routines
that I use across a number of web applications. I thought that I could go
into an existing application an create a new Project and select a "Class
Library" and then create my little utilites.

If I try to import Namespaces such as System.Web.UI.HTMLControls, I am
unable to do so. So exactly what steps should I take to create a class of
web utilities..
 
S

Stanley

If you just created a Class Project you will need to create references to
the System.Web assembly and others that are not already there by default.

-Stanley
 
K

Kevin Spencer

Did you add references to the assemblies containing these NameSpaces?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
J

Jim Heavey

OK, so a reference to System.Web is not placed there by default and I have
to add that reference....

Thanks!!!!!!
 
K

Kevin Spencer

You are correct. It is not included by default because you are creating a
project of type "Class Library" which can be used in any type of
application. Therefore, a reference to System.Web is not necessarily
necessary, and is not added by default.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top