Returning Data back from Dynamically created fields(javascript)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • truezplaya
    New Member
    • Jul 2007
    • 115

    Returning Data back from Dynamically created fields(javascript)

    Hi

    Once again i am faced with an issue. I must allow a user to add as many pieces of data as they wish. I have therefore employed some javascript from an tutorial

    http://www.mredkj.com/tutorials/tableaddrow.htm l

    I would now like to return the data from the dynamic fields through the c#(.cs page) but i have no idea how. Could anybody point me to an example that i could apply or give me a push in the right direction

    cheers truez
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    The easiest way to do this is to use an ASP.NET HiddenField control.

    The HiddenField can be accessed and set via your JavaScript...an d when the page is sent to the server you can access the value in the HiddenField that was set by your JavaScript code in your C# (or VB.NET) server side code.

    You could also use Cookies but this gets a bit trickier.

    -Frinny

    Comment

    Working...