Dynamically delete row using javascript

Posted by Senthilmcatyr under ASP.NET on 1/3/2012 | Points: 10 | Views : 1987 | Status : [Member] | Replies : 3
I used dynamically add row using javascript in asp.net. I insert value in database. Now i used dynamically delete row using javascript but how to delete the data? how to call coding on code behind page?




Responses

Posted by: Sksamantaray on: 1/3/2012 [Member] Silver | Points: 25

Up
0
Down
can you attach your code here?


Thanks,
Sanjay

Senthilmcatyr, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Senthilmcatyr on: 1/3/2012 [Member] Starter | Points: 25

Up
0
Down
Thank you for your reply. now i get delete row but only delete the row, no delete data into database. how can i do delete the data into database?

Senthilmcatyr, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: SheoNarayan on: 1/3/2012 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
You can use jQuery ajax to send the post or get request to the server with the id of the record to delete and delete the record from the database.

Watch this video http://www.fundoovideo.com/video/212/what-is-jquery-ajax to know how jQuery ajax works.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Senthilmcatyr, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response