INSERT / UPDATE record on same page?

Results 1 to 2 of 2

Thread: INSERT / UPDATE record on same page?

  1. #1
    Join Date
    Dec 1969

    Default INSERT / UPDATE record on same page?

    I&#039;m using Macromedia UltraDev.<BR><BR>How can I use the INSERT RECORD and UPDATE RECORD<BR>on the same page so that I can use the same page to UPDATE<BR>or INSERT records, without having to maintain two separate ASP<BR>pages/forms, etc?<BR><BR>What&#039;s the best way to handle this scenario? <BR> <BR>Do I create a separate behavior that will handle both INSERT and UPDATE?<BR> <BR>Do I create the form on a separate page and use a server side include to put in the form?<BR> <BR>Any suggestions would be appreciated.<BR> <BR>-- Gregory Wexler<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default I don't use UltraDev....

    But essentially, yes, you will create two behaviors. One to handle the INSERT, and a second one for the UPDATE. <BR><BR>I don&#039;t know what you&#039;re trying, but I *think* what you&#039;re going to need is something along the lines of an <BR>IF THEN<BR>&#039;Do UPDATE<BR>ELSE<BR>&#039;Do INSERT<BR>END IF<BR><BR>Statement

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts