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. Populating controls on webform using javascript

Populating controls on webform using javascript

Scheduled Pinned Locked Moved Web Development
csharpjavascriptasp-netsysadminquestion
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.
  • I Offline
    I Offline
    Irshad Sulaimani
    wrote on last edited by
    #1

    Hi, I'm new to javascript. I want to know that is it possible to place controls on the webpage dynamically from javascript function. Actually, in ASP.net, we can place controls on webpage on server side. Is it possible to place acontrol like textbox on the webpage in javascript function. If yes, please say how?:rose: Irshad A Sulaimani

    G 1 Reply Last reply
    0
    • I Irshad Sulaimani

      Hi, I'm new to javascript. I want to know that is it possible to place controls on the webpage dynamically from javascript function. Actually, in ASP.net, we can place controls on webpage on server side. Is it possible to place acontrol like textbox on the webpage in javascript function. If yes, please say how?:rose: Irshad A Sulaimani

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Yes, it is. Example: (not tested) var obj = document.createElement('input'); obj.type = 'text'; obj.id = 'fldName'; obj.name = 'fldName'; obj.value = 'Default name'; document.getElementById('TargetElement').appendChild(obj); --- b { font-weight: normal; }

      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