Re: Wierdness with "Imports" statement



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

.


Loading