Visual Studio 2010 allows you to add three different type of references including web reference. We are going to teach you how to add all three reference types to your project.
First, start up your Visual Studio 2010 and create new ASP.NET Web Project. You can choose any C# or VB.NET as your language of choice. It may take a minute or two depending on your computer configuration. You will see the following project space once your ASP.NET Web project is created
Second, right click on the Reference option within your Visual Studio 2010 Solution Explorer. You will notice three different options available for you to choose from. "Add Reference", "Add Web Reference" and "Add Service Reference" Please see picture below.
Third, select firs menu option called "Add Reference" and proceed with the section of the DLL that contains library objects that you need to work with. You can select standard .NET library, COM library, Project space Library or Recent libraries that you used in your prior project. See picture below for library selection screen.
Finally, you can add two more reference types to your project: Web Reference or Service Reference. See pictures of how these screen look like below.
Add Web Reference
Add Service Reference
You will be be able to see chosen libraries added under Reference selections within your Solution Explorer. Your final step before you can start using these libraries is to compile your project to make sure compiler does not return any errors.