Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9013637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:19:04+00:00 2026-06-16T03:19:04+00:00

In my website there is a table , in every td , there is

  • 0

In my website there is a table, in every td, there is a div with <input> inside.
I run over the table and serialize every div and post it to the server.

        for (var r = 0; r < tbodyRow.length; r++) {
            var tbodyCols = tbodyRow[r].cells;
            for (var c = 0; c < tbodyCols.length; c++) {
                row = r + 1;
                cell = c + 1;
                div = $("#tbody tr:nth-child(" + row + ") td:nth-child(" + cell + ") :input").serialize();
                if (div != "") {
                    $.post("../Contoller/Action?Mode=" + Mode, div, function () { });
                }
                tbodyCounter++;
            };
        };

and in the server – the action have an object as parameter that get it.

I would like to post all the list of the object (that i have in the divs) just once
and get it as List<T> in the server side.
is it possible ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:19:06+00:00Added an answer on June 16, 2026 at 3:19 am

    Yes, model binding allows to do that. Refer below article

    http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/

    Also refer below one for introduction

    http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have an asp.net mvc website with a SQL server backend. For every table
So I have a comments section on my website (blog style), so every post
I'm developing a new admin website to update several tables. There is no complicated
In my website there is a link like this http://backlinks.cheapratedomain.com/backlinks.php?url=emobileload.com for better SEO I
In this website there are a list of for loop variations. I can understand
i I can not understand one thing.. On my website there is a button
Just wondering if there's a website out there that allows you to hotlink to
I am working to download images from a website and there comes an error
Is there any website where people share and discuss good examples of object-oriented design?
Is there a website or documentation that details the changes made from each version?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.