Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# Classes

Status
Not open for further replies.

NeilV

Programmer
Oct 14, 2002
117
GB
Hi,

I am relatively new to C# and I would like to know how I can do the following....
I have created several functions that generate some dynamic content on a webpage. I would like to use these functions on several more webpages and obviously I don't want to copy and paste my code!! I did some C++ programming many years ago and I vaguely remember using classes. I know that I can use classes in C#, but I have no idea how to! Can ne1 point in the right direction??

Thanks in advance

Neil [bluegreedy]
 
Ok, I've managed to fumble my way through creating and using my class, but.....
My class is being used to create a treeview and i need to set an assembly reference to it, i think. In the aspx pages where I have used the treeview control I have had the line:
<%@ Register TagPrefix=&quot;IE&quot; Namespace=&quot;Microsoft.Web.UI.WebControls&quot; Assembly=&quot;Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; %>

How do I add a similar line into the class file???

Cheers,

Neil

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top