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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

16<br />

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

The Choose Toolbox Items dialog box will appear, as shown in Figure 2-7. This dialog<br />

box enables you to add either .<strong>NET</strong> Framework components, which are components<br />

written in managed code that will run anywhere you have the .<strong>NET</strong> Framework runtime,<br />

or Component Object Model (COM) components. COM components are binary components<br />

written in unmanaged code that may not necessarily run anywhere because all<br />

their binary dependencies are necessary. Remember this limitation when using COM<br />

components in a web application: You’ll need to provide installers for the COM components<br />

so that your users can access them. Additionally, when COM components are used<br />

in .<strong>NET</strong> applications, the IDE will generate an interoperability (interop) layer that is used<br />

to communicate between the managed <strong>and</strong> the unmanaged worlds. If you are planning<br />

to use the COM components only on the server side, you’ll still need to make sure that<br />

the deployment server has the full COM component <strong>and</strong> all its dependencies installed<br />

<strong>and</strong> versioned correctly, as well as the interop assemblies.<br />

Figure 2-7. The Choose Toolbox Items dialog box<br />

You can select any of the detected components from the Choose Toolbox Items<br />

dialog box, or use the Browse button to browse to the assembly that contains the component<br />

you want to add. To add the component to your Toolbox, simply select the check<br />

box beside it <strong>and</strong> click OK.<br />

Now, to use controls in your Toolbox, simply drag them from the Toolbox to the<br />

design surface of your page. When we’ve finished the IDE tour, you’ll build a simple<br />

application by doing just this.

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

Saved successfully!

Ooh no, something went wrong!