Hello Script World

Hello from Visual FoxPro 09.00.0000.7423 EXE Support Library for Windows.
The Time is: Mar 12, 2026 12:00am.

10 Most Recent Requests

Time Request Verb IP Address
Mar 11, 2026 11:39pm /testpage.rmd GET 18.97.14.86
Mar 11, 2026 10:19pm /HelloScript.rmd GET 185.191.171.6
Mar 11, 2026 06:08pm /testpage.rmd GET 14.233.224.230
Mar 11, 2026 02:34pm /testpage.rmd GET 85.208.96.194
Mar 11, 2026 01:23pm /testpage.rmd GET 57.141.6.52
Mar 11, 2026 01:23pm /HelloScript.rmd GET 57.141.6.5
Mar 10, 2026 06:05pm /testpage.rmd GET 14.191.68.63
Mar 10, 2026 03:27pm /testpage.rmd GET 77.75.78.163
Mar 10, 2026 05:26am /HelloScript.rmd GET 184.154.36.186
Mar 10, 2026 05:26am /testpage.rmd GET 184.154.36.186

This is an MVC Script Page with Code Behind

This page is rendered using a Script page - HelloScript.rmd - from disk that contains FoxPro code embedded inside of < %= expression %> expression tags. There's also a HelloScript() method inside of your process class that is fired to set up a model of data that can be rendered. In this page a Message object for the info box above, and the cursor for the request list are both created in the 'code behind' controller method.

Using scripts you can:

  • Embed expressions using < %= expression % >
  • Embed code blocks using < % code % >
  • Embed Markdown using < markdown></ markdown>
  • Render other partial pages using < %= RenderPartial() %>

You can write code inside of these scripts, and the scripts are automatically recompiled when you make changes.

This Page uses a Layout Page

This page is rendered using a script that references a _Layout page which provides most of the page chrome - the HTML header the toolbar and footer. This Content Page which references this Layout page is then rendered into the Layout producing the complete HTML output.

This MVC style mechanism allows you to create a master layout for your site, and render content pages into it. Content pages then only need to provide the page specific content without having to duplicate the page chrome. You can also create multiple _Layout pages to provide different layouts for different pages.

Note that you can also create completely self contained pages that include all HTML but generally using a Layout page is more productive as you don't have to duplicate the same common HTML into each page.

For more info see Mvc for Web Connection and Layout Pages, Content Pages, Partials and Sections in the Web Connection Documentation.

For building applications we highly recommend using the MVC based approach of using controller methods for setting up models that are then passed to a view for rendering. In Web Connection this translates to a process method that calls Response.ExpandScript() to render a view.

Markdown Embedding

This block of text is rendered using Markdown that is embedded as a Markdown Island into the script page using a < markdown></ markdown> block. Markdown embedded in this way is turned into HTML and embedded into the page.