Datasheet
18
Part I: The Basics
4. Enter appropriate information in the Keyword and Description fields.
5. Paste your code into the Text box. (Alternatively, you can manually enter any desired text, but
using copy and paste from a known - good source is more reliable.)
6. Specify insertion points and/or selection by using the pipe character ( | ) if needed.
7. Click OK to save and close each dialog.
Visual Coding
In the past, you might have gone back and forth between an application ’ s Design and Code views,
depending on what you needed to change. For example, after editing a piece of script in Code view, you
would return to Design view to set some text formatting. Otherwise, you would need to manually enter
or edit the formatting tags in code. In SharePoint Designer, that kind of toggling is much less necessary.
SharePoint Designer allows you to use many of the same techniques for formatting text in Code view as
in Design view.
Figure 1 - 21 shows that the toolbar formatting (bold, italic, and underline) is available while you are
editing in Code view. In fact, they are fully active and interactive with your HTML.
Figure 1-21
Just as in Design view, selecting a formatting command from the toolbar applies that format to
(or removes it from) your selection. Unlike Design view, Code view does not show you the item in its
formatted state. Instead, you see the HTML tags that are applied to make that format happen.
In addition, notice that the state of the toolbar icons follows the current HTML. In Figure1 - 21, the
highlighted text is inside an
< em > (emphasis) tag, which is rendered in italic on a web page. Also notice
that the Quick Tag Selector for the emphasis tag is active.
The same holds true when adding elements to a page. You can easily drag an item from the Toolbox task
pane into the Code view editing window. SharePoint Designer automatically creates and inserts the
appropriate HTML, just as if you had dropped the item into position in Design view.
c01.indd 18c01.indd 18 11/20/08 1:16:22 AM11/20/08 1:16:22 AM