I am developing an asp website, and in a .vb file I want to connect to database, so I have to use System.Data.SqlClient
P.S: But I don’t know where to put the using statement. I used to work with c# in asp, and there we put the using statement at the top of the file. But here it says statements should not be outside a method body or multiline lambda.
The equivalent of the C#
usingstatement in this context isimports. It goes at the top of the file same asusingin C#e.g.
Imports System.WebThere is also a
usingstatement, used to declare disposaible objectse.g.