Utility Class

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
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..
 
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
 
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.
 
OK, so a reference to System.Web is not placed there by default and I have
to add that reference....

Thanks!!!!!!
 
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.
 
Back
Top