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

Importing Namespaces in code behind.

Status
Not open for further replies.

CJAI

MIS
Oct 21, 2003
224
US
I am using a codebehind page to seperate my application layers.

My questions is where do I import the namespaces?? I keep getting the error "Type 'SQLConnection' is not defined."

Where do I import the namespace and what syntax do I use???

Thanks all,

J
 
for C#, add
[tab]using System.Data.SqlClient;
at the top of your code (must be first thing, before any class declarations)

For VB.NET, add
[tab]Imports System.Data.SqlClient

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top