473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Utility Class

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..
Nov 18 '05 #1
4 1387
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

"Jim Heavey" <JH*****@nospam.com> wrote in message
news:Xn*************************@207.46.248.16...
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..

Nov 18 '05 #2
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.

"Jim Heavey" <JH*****@nospam.com> wrote in message
news:Xn*************************@207.46.248.16...
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..

Nov 18 '05 #3
OK, so a reference to System.Web is not placed there by default and I have
to add that reference....

Thanks!!!!!!
Nov 18 '05 #4
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.

"Jim Heavey" <JH*****@nospam.com> wrote in message
news:Xn*************************@207.46.248.16...
OK, so a reference to System.Web is not placed there by default and I have
to add that reference....

Thanks!!!!!!

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: james | last post by:
My fellow VB.NET developers, Ever wonder why MS didn't include a "Class Builder" in Visual Studio .NET like they did in other versions of visual studio? So did we.
7
by: Bora | last post by:
I usually find that a number of unrelated classes require the same kind of operations. However, I don't want to duplicate code in multiple places. In Java, I've seen those "Utility Classes",...
1
by: Luciano Cavallero | last post by:
Hi, I'm looking for a Diff utility for C++ class, able to show differences two class in term of methow, properties etc. I know that this is more complex that a common diff files because need a...
5
by: Diffident | last post by:
Hello All, I have written a webform which is by default derived from "Page" class. I have coded another utility class with few methods and an object of this class is instantiated from the webfom...
7
by: Jim Strathmeyer | last post by:
So, right now I have a class that is basically utility functions; it's methods are all static because there is no class data, and I would never create an object of this class. So I call these...
2
by: Christoph Haas | last post by:
Evening, I'm currently working on a larger Python project that consists of multiple programs and packages. As I need a few utility functions time and again I moved them all into a Utility...
7
by: wolfing1 | last post by:
Is there a way to see what CSS classes in a page are not defined? (like if I want to find mispelled class names, etc)
4
by: Jeff User | last post by:
Hi all Developing C# web apps, .net1.1 I have gotten in habit of placing commonly used (interface) functions in my base page. However, some apps I work on use a seperate "Utility" class...
5
by: Kurt Jakobsen | last post by:
Hello, I have a utility class that do some db queries that are used by independent pages. From one of the utility functions I would like to return variables back to the aspx page. In old C this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.