User2019633211 posted
Hello!-
As a new developer, I don't understand when and what Imports to use at the top of the code behind file. I understand they allow acces to different namespaces and classes which allows different functionality (I believe), but how do I
know when I should be adding them?
Would it be good practice to just add them on every page (or in the code behind of master page), something like this:
Imports System.Web.UI.WebControls
Imports System.Net.Mail
Imports System.IO
Imports System.Linq
Imports System.Web.UI
Imports System.Web.Security
Imports System.Collections.Generic
Imports System
Imports System.Web
and then I would always have it covered, or does that slow the system down?