Creating the detail template page

When processing data through a Web server while connected to the Internet you can use one of two options:

  • Create a link to the detail page and pass data in the URL.

    This is how the static Web page solution works:

    The links to the detail page are in this form:

    /EmpDir/detailpage.html?id=1

    The detail page then reads the record id from the URL string, retrieves the rest of the employee's information from the database, then creates the page and sends it down to the device.

  • Use a cookie to keep state between pages.

    When connected to the Internet, you can use the switchToDetail function to set a cookie, then send the browser to a detail page. The detail page would then read the cookie and look up the employee information from the cookie.

    Note

    You can see an example of this in the sample code files static_list.aspx, static_update.aspx in the DB_Sample.zip file.