Namespace?
-
I'm starting out learning asp.net and VB/C# by making a custom membership provider. In the sample provider from the MSDN site, they show a list of imports, a db schema comment, and then Namespace Samples.AspNet.Membership There is a End Namespace at the eof. Prior to finding this, I found another example provider where these two lines were not included. I'm working in Visual Web Developer and when a code behind file is created, there is nothing of namespace to be found in it auto generated stubs. Do I need to have these namespace lines in my code behind file? If so, what should it be? What is it that Namespace Samples.AspNet.Membership is doing?:confused:
-
I'm starting out learning asp.net and VB/C# by making a custom membership provider. In the sample provider from the MSDN site, they show a list of imports, a db schema comment, and then Namespace Samples.AspNet.Membership There is a End Namespace at the eof. Prior to finding this, I found another example provider where these two lines were not included. I'm working in Visual Web Developer and when a code behind file is created, there is nothing of namespace to be found in it auto generated stubs. Do I need to have these namespace lines in my code behind file? If so, what should it be? What is it that Namespace Samples.AspNet.Membership is doing?:confused:
Namespaces are a simple way of structuring your code into simular areas. Think about it like this. The System.Data.SqlClient namespace contains all of the sql data objects and the System.Web.UI.WebControls contains all of the webcontrols. So the Datagrid is a class in the System.Web.UI.WebControls Namespace. Kind of babbling because its late, but do you get the idea?
-
Namespaces are a simple way of structuring your code into simular areas. Think about it like this. The System.Data.SqlClient namespace contains all of the sql data objects and the System.Web.UI.WebControls contains all of the webcontrols. So the Datagrid is a class in the System.Web.UI.WebControls Namespace. Kind of babbling because its late, but do you get the idea?