ASP.net: need how to add row to existing table dynamically RRS feed

  • Question

  • Hi Everyone,

    i am new to the ASP.net i want create a sample application if you click on button it has to add additional to existing table just as shown in below. 

    in that dynamic row i want keep combo box also.


    function myFunction() { 
        newstr='<tr><td>row n, cell 1</td><td>row n cell 2</td></tr>';

     <table border="1" id="mytable"> 
     <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> 
     <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> 
     <button onclick="myFunction()">Try it</button> 

    Please help me

    • Moved by Jason Dot Wang Wednesday, March 27, 2013 7:59 AM This thread is about ASP.NET
    Monday, March 25, 2013 2:37 PM


  • Hi Rajendar M,

      Welcome to MSDN Forum Support.


      You are more likely to get more efficient responses to ASP.NET issues at http://forums.asp.net where you can contact ASP.NET experts.


      Jason Wang

    Jason Wang [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Rajendar M Friday, July 19, 2013 12:53 PM
    Wednesday, March 27, 2013 2:43 AM