Populate Form from Database

Results 1 to 4 of 4

Thread: Populate Form from Database

  1. #1
    Carl Bennett Guest

    Default Populate Form from Database

    Is there any other way to populate a form without using something like this,<BR><BR>&#060;INPUT name=address value="&#060;%=dbAddr %&#062;"&#062; <BR><BR>I want to populate the form on the server.

  2. #2
    Join Date
    Dec 1969

    Default RE: Populate Form from Database

    You are populating it on the server. ASP is server side scripting, and so thus the above code will produce...<BR><BR>&#060;INPUT name=address value="123 Any Street"&#062; <BR><BR>Maybe I am not understanding your question?<BR><BR>Jerry

  3. #3
    Carl Bennett Guest

    Default RE: Populate Form from Database

    I have a very long form. I&#039m trying to avoid using "value= ", because the code would be spread all over the page. Beside, as soon as you add that code you can&#039t use InterDev&#039s Design mode. <BR><BR>Is there another way to update the value. In client side script I could use document.myform.myfield.value = "123". Is there a way to do that on the server?<BR><BR>Thanks!

  4. #4
    suersh Guest

    Default RE: Populate Form from Database

    I think you can better do it with temporary variables or array will do.<BR><BR>you can open recordset and populate the array and then from array to the text box if the text boxes are of using the control array structure.<BR><BR>I feel this could parse your asp page faster.<BR><BR>bye,<BR>suresh .P

Posting Permissions

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