in

Archived Data Techniques Forums

AddFormField Method Sample

Last post 07-02-2009 9:22 AM by Admin. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-01-2009 3:04 PM

    AddFormField Method Sample

    I noticed there is a method for passing more data about an image through the AddFormField. Can you give me an example of this code. I am wanting to copy the id of the person I scan to be associated to the picture.

    I am basically wanting to write the link to the picture in a SQL database associated to an individual.

    Filed under: ,
  • 07-02-2009 9:22 AM In reply to

    Re: AddFormField Method Sample

    Hi,

    The AddFormField method basically allows you to add a value that gets posted with the image data to the serverside. On the serverside you can get the field value and then use it for whatever you need. So if it was the ID of the person who's data was scanned you could use it on the serverside to update/insert the data in the database.

     

    To use AddFormField just call it before you call the .Post method. Then on the serverside you can retrieve the field name/data from the post request.

     

     

Page 1 of 1 (2 items)
Copyright 2009 Data Techniques, Inc. All Rights Reserved.