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. General Programming
  3. C#
  4. How to get values from dynamica generated HTML control

How to get values from dynamica generated HTML control

Scheduled Pinned Locked Moved C#
javascripthtmlsysadmintutorial
3 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.
  • E Offline
    E Offline
    Exelioindia
    wrote on last edited by
    #1

    Hi all, Please any one suggest me how to get values from dynamically generated HTML control in server side code. In my web page on clicking a button i am adding HTML select control using JavaScript, when I hit save button I have to store the selected values of dynamically generated controls. How to get all the HTML controls values from server side. Thank you

    Know is Drop, Unknown is Ocean

    L G 2 Replies Last reply
    0
    • E Exelioindia

      Hi all, Please any one suggest me how to get values from dynamically generated HTML control in server side code. In my web page on clicking a button i am adding HTML select control using JavaScript, when I hit save button I have to store the selected values of dynamically generated controls. How to get all the HTML controls values from server side. Thank you

      Know is Drop, Unknown is Ocean

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      You cannot do that in C#. Try again...

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 beta 1 - out now!
      ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))

      1 Reply Last reply
      0
      • E Exelioindia

        Hi all, Please any one suggest me how to get values from dynamically generated HTML control in server side code. In my web page on clicking a button i am adding HTML select control using JavaScript, when I hit save button I have to store the selected values of dynamically generated controls. How to get all the HTML controls values from server side. Thank you

        Know is Drop, Unknown is Ocean

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

        As long as the control is in the form that you post to the server, you can use the Request.Form collection to get the value. For further ASP.NET questions, use the ASP.NET forum.

        Despite everything, the person most likely to be fooling you next is yourself.

        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