Re: Wierdness with "Imports" statement
- From: "danthman" <danthman@xxxxxxx>
- Date: 15 Dec 2005 17:19:49 -0800
Yes. I have that in my web.config file. I also just tried adding an
"Imports System.Data" statement to the code module, but I still get the
same error.
Another thing I just tried:
-----
Imports System.Data.SqlClient
Partial Class PageHeader
Inherits System.Web.UI.UserControl
Public ConnectionObjG As SqlConnection = New
SqlClient.SqlConnection()
Public AdapterObjG As SqlDataAdapter = New
SqlClient.SqlDataAdapter()
....
-----
No errors. Why?
Isn't it strange that the only the second reference in each case needs
the "SqlClient" prefix?
Thx,
-Dan
.
- References:
- Wierdness with "Imports" statement
- From: danthman
- Re: Wierdness with "Imports" statement
- From: KJ
- Wierdness with "Imports" statement
- Prev by Date: Re: .Net 2, asp:Literal outside a server form = unrecognized tag prefix
- Next by Date: Re: dataset question - to preserve DB resources
- Previous by thread: Re: Wierdness with "Imports" statement
- Next by thread: Re: best technique for connection strings in web.config in ASP.NET
- Index(es):
Loading