Defining the code to insert
Finally, you define the code to insert.
To define the code to insert:
- Select the Plus (+) button for Code Blocks to Insert.
- In the Create a New Code Block dialog box, enter
Hello_World_block1(Dreamweaver might automatically enter this information for you). - Click OK.
- In the Code Block text field, enter
<% Response.Write("Hello World") %>. - In the Insert Code pop-up menu, select Relative to the Selection so the user can control where this code goes in the document.
- In the Relative Position pop-up menu, select After the Selection.
- Click OK.
In the Server Behaviors panel, you can see that the Plus (+) menu contains the new server behavior in the pop-up list. Also, in the installation folder for your Adobe Dreamweaver files, the Configuration/ServerBehaviors/ASP_Js folder now contains the following three files:
- The group file: Hello World.edml
- The participant file: Hello World_block1.edml
- A script file: Hello World.htm
NOTE
If you are working in a multiuser configuration, these files appear in your Application Data folder.