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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to access listbox items filled by javascript, on code behind

how to access listbox items filled by javascript, on code behind

Scheduled Pinned Locked Moved ASP.NET
helpjavascriptdatabasetutorial
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.
  • A Offline
    A Offline
    Amit Sk Sharma
    wrote on last edited by
    #1

    Dear All, I m facing problem ie. I have filed a listbox with the help of javascript on the page. and need to access data through code behind to create a datatable for all elements filled by javascript. BUT the problem is code not getting the filled data(when i used view source no data was there in listbox). should i create an index for listbox at the time i m entering data or problem lies some where else. plz suggest me better.

    With Thanks & Regards Amit Sk Sharma

    A 1 Reply Last reply
    0
    • A Amit Sk Sharma

      Dear All, I m facing problem ie. I have filed a listbox with the help of javascript on the page. and need to access data through code behind to create a datatable for all elements filled by javascript. BUT the problem is code not getting the filled data(when i used view source no data was there in listbox). should i create an index for listbox at the time i m entering data or problem lies some where else. plz suggest me better.

      With Thanks & Regards Amit Sk Sharma

      A Offline
      A Offline
      ash04
      wrote on last edited by
      #2

      Hi, As I know that any thing you change through the Javascript, is not saved in the view state. Hence you can get it in the postback. Yoy can get only selected value through request.form(name of the list control). If you require all the inserted item you need to do it logically.

      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