dimension <di*******@discussions.microsoft.com> wrote in message news:<D4**********************************@microso ft.com>...
Hi,
in visual studio 2005 beta, when i type "using System.Web." no code complete
helper pops up. Similarly, when typing "using System.Net." i do not see an
HttpWebRequest in the list that pops up. According to the documentation,
HttpWebRequest should be a part of the System.Web namespace.
I am not sure why this is happening? Can anyone assist?
I don't have VS 2005, but possible, it's not the problem of VS 2005 at
all.
The same "problems" in VS 2003, so I can try to explain from VS 2003
point of view:
1) HttpWebRequest is the class, not the Namespace => why it should be
shown in list, when you type "using System.Net."? In this pop up only
context meaning info is shown.
Just try to type in any your method System.Net.=> you will see
HttpWebRequest and many other classes too
2) "using System.Web." "doesn't not work"... Let's have a look at
documentation about System.Web Namespace => you will see a list of
classes. Click on any of class of this namespace => you will see the
help about class, scroll to the buttom and have a look at Assembly
info:
Assembly: System.Web (in System.Web.dll)
It means, that you should add reference to this assembly, before using
this namespace.
Adding reference is easy:
- in Solution Explorer open the project's folder
- right click on Reference folder and choose Add Reference
- just add in .NET page the System.Web.dll to your references
now you can try "using System.Web." works.
Best regards, Vladimir.