Saving New row ( added in client side)
-
Hi, I have a HTML tabe.I am populating it in Page_Load with some existing record.In client side I am adding some new rows to this table through Javascript.But while I am trying to insert the new record to database, server shows no clue to detect the newly added rows. How can I make the server sense the new rows and insert the record to database. If possible give me the code. Tirthadip
-
Hi, I have a HTML tabe.I am populating it in Page_Load with some existing record.In client side I am adding some new rows to this table through Javascript.But while I am trying to insert the new record to database, server shows no clue to detect the newly added rows. How can I make the server sense the new rows and insert the record to database. If possible give me the code. Tirthadip
-
Hi, I have a HTML tabe.I am populating it in Page_Load with some existing record.In client side I am adding some new rows to this table through Javascript.But while I am trying to insert the new record to database, server shows no clue to detect the newly added rows. How can I make the server sense the new rows and insert the record to database. If possible give me the code. Tirthadip
Tirthadip wrote:
server shows no clue to detect the newly added rows.
That is because the server has no clue what so ever that you have done something to the html code in the browser. The only thing that is posted back to the server is the contents of the form fields, nothing else. If you wan't the changes to be available on the server, you have to send the information as form data. You can use hidden fields for this. --- b { font-weight: normal; }