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. Dynamic Controls HELP --URGENT

Dynamic Controls HELP --URGENT

Scheduled Pinned Locked Moved ASP.NET
4 Posts 3 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.
  • P Offline
    P Offline
    percyvimal
    wrote on last edited by
    #1

    Hello I am creating Dynamic HTML controls using javascript and filling data from ajax. When post back i cannot access the html controls like text box and combo box using request.form() and those dynamic controls. How to access dynamically created HTML Controls on Client side on Server side after the page is submited? Need help Urgently thanks and regards

    Help in need is the help indeed

    S B 2 Replies Last reply
    0
    • P percyvimal

      Hello I am creating Dynamic HTML controls using javascript and filling data from ajax. When post back i cannot access the html controls like text box and combo box using request.form() and those dynamic controls. How to access dynamically created HTML Controls on Client side on Server side after the page is submited? Need help Urgently thanks and regards

      Help in need is the help indeed

      S Offline
      S Offline
      SABhatti
      wrote on last edited by
      #2

      AFAIK controls added on client are not accessible on server unless there is way to modify viewstate on client (I don't think you can do it). A better way to achieve something like you want is to create the controls on server and show them or hide them on client as per your logic/requirement.

      -----

      1 Reply Last reply
      0
      • P percyvimal

        Hello I am creating Dynamic HTML controls using javascript and filling data from ajax. When post back i cannot access the html controls like text box and combo box using request.form() and those dynamic controls. How to access dynamically created HTML Controls on Client side on Server side after the page is submited? Need help Urgently thanks and regards

        Help in need is the help indeed

        B Offline
        B Offline
        badgrs
        wrote on last edited by
        #3

        Have you assigned id attributes to the elements? Try checking the request sent to the server to check what POST variables its sending (using a tool like Firebug and/or Fiddler)

        P 1 Reply Last reply
        0
        • B badgrs

          Have you assigned id attributes to the elements? Try checking the request sent to the server to check what POST variables its sending (using a tool like Firebug and/or Fiddler)

          P Offline
          P Offline
          percyvimal
          wrote on last edited by
          #4

          Thank you very much for the reply. Yes i have assigned both name and id attributes for the controls i have created. But not showing in the key Collections in request.form. It only shows the Items that i created as server controls.

          Help in need is the help indeed

          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