• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 43. Using FrontPage 2003 and Vis... > Comparing the Inline and Code-Behind...

Comparing the Inline and Code-Behind Models for Code

If you ever used FrontPage to work with ASP pages, you probably put your ASP code inside <% and %> tags. These tags define a code render block, meaning a block of code that executes when the Web server creates the HTML code for the page (that is, when the Web server renders it). The Web server scans the page as it leaves the server and executes code render blocks at the time it encounters them.

Code declaration blocks provide a second way of adding program code to a Web page. A code declaration block begins with a <script runat=“server”> tag and ends with a <script> tag. The Web server doesn’t execute code declaration blocks immediately; instead, the Web server saves the code until another piece of code calls it.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint