Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Adding 3 fields together and updating a fourth field with the value

Adding 3 fields together and updating a fourth field with the value

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    macca24
    wrote on last edited by
    #1

    I have four fields, A, B, C, D Fields A, B, and C will have numerics added to them. I want that when I have added data to all three fields then field D will automatically be updated with the SUM of the 3 fields A, B and C. Anyone know how to do this?

    Z 1 Reply Last reply
    0
    • M macca24

      I have four fields, A, B, C, D Fields A, B, and C will have numerics added to them. I want that when I have added data to all three fields then field D will automatically be updated with the SUM of the 3 fields A, B and C. Anyone know how to do this?

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #2

      Put an onchange event on each textbox that calls a JS function. In the function, check if all 3 textboxes have numbers in them. If so, add them and put the result into the 4th textbox.

      There are only 10 types of people in the world, those who understand binary and those who don't.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups