Click here to Skip to main content
15,888,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello everyone,

[Using Datatable jquery table]

I am trying to post data of table which is inside of a form and I am adding rows to that table dynamically on view side. After adding the rows to the table, I need to post those rows data to the action controller using model binding.

Is it possible that I can bind model to the table? as initially the table is empty.
Is it possible that I can send data from table to controller without using ajax?

If it's possible kindly give me some code snippets for solving this problem.

Thanks

What I have tried:

I have searched alot but except ajax request i did not find any way to post datatable data to the action controller.
Posted
Comments
Why not ajax?
Shahzad Mirza 27-Dec-16 4:17am    
what if I have long form with a table to add rows dynamically in the table and then saving the whole form including the table and after post then I need to redirect to the another action.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900