08.01.2015 Views

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

22<br />

CHAPTER 2 ■ BASICS OF WEB DEVELOPMENT WITH <strong>ASP</strong>.<strong>NET</strong><br />

Figure 2-12. Adding a reference<br />

One option is to add a .<strong>NET</strong> assembly from the .<strong>NET</strong> tab in the Add Reference dialog<br />

box, in which case the process is straightforward. Just make sure that you deploy the DLL<br />

containing the assembly with your site, <strong>and</strong> your application should work well. Another<br />

option is to add a COM component from the COM tab, which is a little more complex. As<br />

I mentioned previously, you’ll have to make sure that the COM component is properly<br />

installed on the server as well as the COM interop assemblies that are generated by the<br />

IDE to enable your code to interact with the COM component from the .<strong>NET</strong> runtime<br />

environment.<br />

If the component that you need isn’t on the list, whether it’s a .<strong>NET</strong> assembly or a<br />

COM component, you can look for it on the Browse tab, or the Recent tab, where, for your<br />

convenience, recently added components are listed.<br />

So, for example, if you want to use the Microsoft <strong>AJAX</strong> Extensions for <strong>ASP</strong>.<strong>NET</strong> (formerly<br />

known as “Atlas” in its beta form), discussed in Chapters 11 through 14, you can<br />

use the Browse tab to go to their installation directory <strong>and</strong> pick them up from there (see<br />

Figure 2-13). (Note that you can select multiple files on this tab.) Once you locate the files<br />

using the Browse tab, you will be able to use the controls <strong>and</strong> functions from these DLLs<br />

in your web site.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!