Results 1 to 2 of 2

Thread: Namespaces

  1. #1
    Join Date
    Dec 1969

    Default Namespaces

    Can anyone tell me where I could find the namespaces available for ASP.NET and a definition of what they do? Just in case I am calling it something different than it is, I am referring to the code placed at the top of an ASP.NET page that looks like this:<BR><BR>&#060;%@ Import Namespace="System.Data" %&#062;<BR><BR>Also, do you need to have something like this at the top of every page or is there a default namespace loaded for basic processing.<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Namespaces

    I like to use the class documents at (<BR><BR>The default namespaces that are loaded vary depending on the type of page/project. For example, a ASP.NET page automatically has access to the System.Web.UI.WebControls (among others) class. You don&#039;t need to have an import or using directive in a .aspx page to use the WebControls. If you were using a code behind file then you still need to specify all namespaces being used.<BR><BR>hth,<BR>Alex<BR><BR>ASP.NET Examples/Tips:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts