This topic is locked

Updating and retrieving field values

6/15/2006 1:17:58 PM
ASPRunner.NET General questions
P
paul.speck author

I'm starting to work on adding events to my project and came across two separate questions.

  1. In the Database File step of project creation, I pointed to an access database in my root localhost directory. After building the project, another copy of the database is created in the App_Data folder of the project. When I update a record through the newly created website, I receive a success message, but neither of these databases reflect the change. The website displays the change after logging out and back in, but when I rebuild I lose the changes here also. Do you have any ideas what might be going on here?
  2. In a Before_Update event, I am trying to access the field values on this page. By searching the forum I found the syntax

    'Page.Response.Write(GetRequestForm("project_number"))'

    When trying to run this I get the message:

    Compiler Error Message: BC30451: Name 'GetRequestForm' is not declared

    What is the correct syntax for accessing field values from this page?
    Thank you for the help,

    Paul Speck

P
paul.speck author 6/15/2006

I found answers to the first question looking further through the forum, so only unsure how to access field values and eventually hide certain fields based on values in other fields.
Thanks again,

Paul Speck

Sergey Kornilov admin 6/15/2006

Paul,
if you plan to move your application to the remote web server you need to have your database file in App_Data. That's why ASPRunner.NET creates a copy of your database in App_Data folder. Generated pages work with new database copy.
To get a better understanding of how it works check the following article:

http://www.xlinesoft.com/asprunnerpro/arti...se_strategy.htm
GetRequestForm function applies to ASPRunnerPro only. In ASPRunner.NET you need to check sample actions that apply to selected framework and language.