Export (0) Print
Expand All

Add an ASP.NET control to a page

Microsoft Expression Web enables you to insert ASP.NET controls into a page by using the Insert menu, the Toolbox task pane, or IntelliSense. The Insert menu provides some ASP.NET controls, the Toolbox task pane provides many more ASP.NET controls, and IntelliSense provides all ASP.NET controls for the version of the Microsoft .NET Framework that is installed on your system.

Cc295126.alert_note(en-us,Expression.10).gifNote:

You must have the .NET Framework 2.0, 3.0, or 3.5 installed on your system in order for ASP.NET controls to be provided in Expression Web. For more information, see Choosing and installing a .NET framework.

To insert an ASP.NET control from the Toolbox task pane

  1. In the Toolbox task pane, expand the ASP.NET Controls category and the subcategory that contains the ASP.NET control you want to use.

  2. Open an ASP.NET page and do one of the following:

    • Drag the ASP.NET control into either the Design view or the Code view of your page.

    • In your page, put your cursor where you want the ASP.NET control to appear. In the Toolbox task pane, either double-click the ASP.NET control or right-click the control and click Insert.

    • In your page, select the content you want to enclose within an ASP.NET control. In the Toolbox task pane, right-click the control and click Wrap.

To insert an ASP.NET control from the Insert menu

  1. In either the Design view or the Code view of your page, put your cursor where you want the ASP.NET control to appear.

  2. On the Insert menu, point to ASP.NET Controls, and then click the ASP.NET control you want.

To insert an ASP.NET control by using IntelliSense

  1. In the Code view of your page, put your cursor where you want the ASP.NET control to appear. Your cursor must be between the <body> and </body> tags.

  2. Type <asp, and then, in the IntelliSense shortcut menu, select the ASP.NET control.

    Cc295126.alert_note(en-us,Expression.10).gifNote:

    The IntelliSense shortcut menu appears only if the ASP.NET statement completion option is selected in the IntelliSense tab of the Page Editor Options dialog box.

  3. To add an attribute to the control, press SPACEBAR, and then, in the IntelliSense shortcut menu, select the attribute. In the IntelliSense shortcut menu, select a value.

    Repeat this step to add more properties.

  4. To close the ASP.NET control tag, type >.

Community Additions

ADD
Show:
© 2014 Microsoft