create dynamically textboxes in javascript and pass that values to asp.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ganesh22
    Banned
    New Member
    • Sep 2007
    • 81

    create dynamically textboxes in javascript and pass that values to asp.net

    Hi,
    I want to create dynamically textboxes in javascript and after entering the values in textboxs i want to pass that values into a string in asp.net/C# How?
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I'm not sure if this approach is possible because the asp.net textbox controls are registered with the page...you may run into some validation problems when the page is sent back to the server with different controls than when it was sent to the browser.

    I would recommend dynamically creating textboxes in your asp.net server side code instead.

    There's an example of that used in this article.

    -Frinny

    Comment

    Working...