Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ASP VBSCRIPT

    I have a form with ship to customer and bill to customer fields. Both of
    these are required fields. I want to put a check box in the form and if the
    check box is checked then the value of the ship to customer is loaded into
    the bill to customer. I need this to happen before the form is submitted.
    can I do this with ASP?

    The person fills in the ship to customer and if the bill to customer is the
    same then they just check the box and the same value is automatically
    entered. If they are different then he just types the bill to customer in.

    Thanks!
    Darren


    Darren Woodbrey Guest

  2. Similar Questions and Discussions

    1. ASP/VBScript - if then or else
      I'm developing a site using ASP/VBScript and I'm trying to populate a table with data contain within a recordset using the repeat region... which is...
    2. VBScript
      I'am running window server 2000 and MS frontpage on my computer. I created ASP page with the frontpage editor. The asp code are not running when I...
    3. VBScript and ASP
      Can I copy code from a .ASP page into a .VBS file and execute it? I need to run code in an ASP page in a daily event on the server. Thanks! ...
    4. ASP.NET and vbscript
      Browser security settings may be hampering your attempts. To get it to work, the setting you'll most likely need to adjust can be found on the...
    5. VBScript to ASP
      I have an ASP page, on the Window_OnLoad event I use VbScript to popup an Inputbox to accept a value from the user and put it into a string called...
  3. #2

    Default Re: ASP VBSCRIPT

    Darren Woodbrey wrote on 28 jun 2004 in
    microsoft.public.inetserver.asp.db:
    > I have a form with ship to customer and bill to customer fields.
    > Both of these are required fields. I want to put a check box in the
    > form and if the check box is checked then the value of the ship to
    > customer is loaded into the bill to customer. I need this to happen
    > before the form is submitted.
    > can I do this with ASP?
    No.

    ASP is serverside, so you have to submit to have ASP running.

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
    Evertjan. Guest

  4. #3

    Default Re: ASP VBSCRIPT

    JavaScript:

    function jsCopyBillFieldsToShipFields() {
    // This function is triggered by button's onclick.

    // Dim var.
    var frm;

    // Form.
    frm = document.frmMain

    // Set form fld.
    frm.ShipName.value = frm.DistribName.value;
    frm.ShipContactName.value = frm.Contact1Name.value;
    frm.ShipAddress1.value = frm.DistAddress1.value;
    frm.ShipAddress2.value = frm.DistAddress2.value;
    frm.ShipCity.value = frm.DistCity.value;
    frm.ShipState.value = frm.DistState.value;
    frm.ShipZipCode.value = frm.DistZipCode.value;
    frm.ShipPhone.value = frm.DistPhone.value;
    frm.ShipFax.value = frm.DistFax.value;
    }

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Designer
    [url]http://www.Bullschmidt.com[/url]
    ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Devdex [url]http://www.devdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139