Monday, March 12, 2012

What is the difference between namespace and USING

<%

@dotnet.itags.org.importnamespace="System" %>

<%

@dotnet.itags.org.importnamespace="System.Data" %>

vs

using System;

using

System.Data;One's used declaratively (import) and the other (using) is used programmatically from code-behind/beside.
Not sure I understand. What is the wisdom behing this confusion.

kenbati:

Not sure I understand. What is the wisdom behing this confusion.

1) you have a page with no codebehind and would want to use the declarative method.

2) you have a class with no web page and would use the programatic method.

0 comments:

Post a Comment