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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO define default references in VS.NET 1

Status
Not open for further replies.

Alcar

Programmer
Sep 10, 2001
595
US
howdy!

99% of the times I'm starting an ASP.NET project with VS.NET I am using SQL Server DB as a backend. Therefore I find myself adding in all the aspx pages the:

[c#]
using System.Data.SqlClient;

namvespace. When you are writing code for hundreds of pages, it can get very boring. So I was looking into the possibility to "teach" my VS.NET to ALWAYS import that namespace.

I looked around and I have found all sorts of neat stuff but that... any ideas?

tnx, I'll tell Santa you're Nice!!! Daren J. Lahey
Just another computer guy...
If you are unsure of forum etiquette check here FAQ796-2540
 
check out my second post in this thread. I talk about setting up boiler plate code, and where to do that in VS. It's machine specific, so if there are more developers in your office, you'll need to set it up on all of them.

Once you start digging around in the directories I speak of there, it will be very simple to see how things work.

thread855-265989

hth! :)
paul
penny1.gif
penny1.gif
 
Outstanding job Paul! I'll let Santa know you have been NICE. =) Daren J. Lahey
Just another computer guy...
If you are unsure of forum etiquette check here FAQ796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top