Valhalla Legends Archive

Programming => General Programming => .NET Platform => Topic started by: Grok on October 20, 2004, 03:35 PM

Title: Imports System.Web.*
Post by: Grok on October 20, 2004, 03:35 PM
When I type

Imports System.Web.

only 3 choices come up.  But in MSDN there are other choices, like System.Web.Mail.  How do I get it to show the other namespaces under System.Web, like Mail?

I am on .NET 1.1, but how do I verify that?
Title: Re: Imports System.Web.*
Post by: MyndFyre on October 20, 2004, 06:29 PM
Be sure that you have the correct libaries imported.

Without System.Web.dll, I only get the System.Web namespace, no sub-namespaces, although I do get 3 class entries.

Right-click on your project, and choose "Add Reference..." and under the .NET tab, select System.Web.dll.  I get 10 namespaces and a variety of classes there.
Title: Re: Imports System.Web.*
Post by: Grok on October 20, 2004, 07:33 PM
Quote from: MyndFyre on October 20, 2004, 06:29 PM
Be sure that you have the correct libaries imported.

Without System.Web.dll, I only get the System.Web namespace, no sub-namespaces, although I do get 3 class entries.

Right-click on your project, and choose "Add Reference..." and under the .NET tab, select System.Web.dll.  I get 10 namespaces and a variety of classes there.

Thanks.  I thought I had to add a reference, but I didn't know which one.  Since System.Web.* was already there, System.Web.dll did not pop in my head.