advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Server Behaviors
Dreamweaver MX has expanded capabilities over the last version. Do you agree that it's easy enough for novices to use? Would you like to see more articles about Dreamweaver MX? Let us know in the web.server.scripting discussion group.
Partners & Affiliates
advertisement
advertisement
advertisement
Rate this item | 0 users have rated this item.
 

Use Dreamweaver MX Server Behaviors to Automate Dynamic Data Operations

Dreamweaver MX makes creating data-driven Web sites easy enough for even Web development novices. 


 
advertisement
year ago, if someone had asked me to develop an interactive Web site, I'd have said, "Sure, me and what magic genie?" Fortunately, for those of us with little expertise in Web development, Dreamweaver MX is that magic genie. In this article, you'll see how to generate Dreamweaver MX server behaviors so you can display and interact with dynamic data—without really knowing anything about how it works.

What Is a Server Behavior?
In Dreamweaver MX, the term behavior refers to software-generated script that executes a specific task. The term server behavior simply means the server executes the behavior script (instead of the client). Dreamweaver MX automatically generates the script necessary to perform these tasks, with just a little help from you. Behaviors automate several data-centric tasks, including:

  • Displaying data, and letting users modify and navigate through the data.
  • Searching the data.
  • Restricting access to data.
The Server Behaviors sidebar contains a list of server behaviors and a brief explanation about how you might use each type.

To get started, define a new site and create a connection to the data source. If you don't know how to build a connection, add a document, or create a recordset, search Dreamweaver MX's Help feature for these topics:

  • Connecting to a database
  • Create and save a new page
  • Creating a recordset without writing SQL.
Setting up the Examples
Before you can insert a server behavior into a page, you must have a working connection to a database and a recordset object. The examples in this article depend on Microsoft technologies (Microsoft Access, ASP, IIS, and VBScript), but you can use other databases and other server-and-client technologies and languages.

  • Internet Information Services (IIS) for the Web server.
  • Active Server Pages (ASP) and VBScript to retrieve data.
  • MS Access to store data. (We copied Northwind.mdb to a sample file directory— C:\Inetpub\wwwroot\DreamweaverSampleFiles.)
  • A Data Source Name (DSN) ODBC connection named NWJetfortheWeb.
  Next Page: How to Add a Server Behavior
Page 1: IntroductionPage 3: Using Server Behaviors—a Simple Example
Page 2: How to Add a Server Behavior 
Please rate this item (5=best)
 1  2  3  4  5
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Help  |   Site Map  |   Network Map  |   About


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers