johneydluca
Programmer
Hi
I am a new developer to ASP.NET (Visual Studio,net). I tried my best but could not fing how to Import namespaces in the Program. i have a very basic question. sorry to ask such a silly query.
To create asp.net program using database I need to import following 3 namespaces which all books write .
<%@Import Namespace="System.Data" %>
<%@Import Namespace="System.Data.OleDb" %>
<%@Import Namespace="System.Data.SqlClient" %>
But using Visual Studio it creates following 3 files for each program
.aspx
.aspx.vb and
.aspx.resx
Out of above 3 filed which one should I add these three import statements? Or is their any other better way like the way we had in VB6 like using Import COM Dll (How to do this)?
thanks
jd
I am a new developer to ASP.NET (Visual Studio,net). I tried my best but could not fing how to Import namespaces in the Program. i have a very basic question. sorry to ask such a silly query.
To create asp.net program using database I need to import following 3 namespaces which all books write .
<%@Import Namespace="System.Data" %>
<%@Import Namespace="System.Data.OleDb" %>
<%@Import Namespace="System.Data.SqlClient" %>
But using Visual Studio it creates following 3 files for each program
.aspx
.aspx.vb and
.aspx.resx
Out of above 3 filed which one should I add these three import statements? Or is their any other better way like the way we had in VB6 like using Import COM Dll (How to do this)?
thanks
jd