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

  • SEARCH
  • Home
  • 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 801245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:24:46+00:00 2026-05-14T23:24:46+00:00

I have to update the users based on input value.. here is my code..

  • 0

I have to update the users based on input value..

here is my code..

<fieldset>
<legend>StudnetInfo</legend>

here i have two textboxes and two dropdown list boxes.. this is the fiedlset user is going to enter their information.. 
</fieldset>

on the same page i have couple of other Fieldset with there studentInfo with twotextboxes and two dropdownlistboxes smililarly above Fieldset..this data dynamically generated from database for each users.

so all here my intension is insted of updating each and every Fieldset i made one generic fieldset to update all other Fieldsets information

on the Generic view I have this BeginForm

<% using (Html.BeginForm("Update", "home", FormMethod.Post,
    new { @id="studentid"})) 
   { %>

my JsonResult is

 public JsonResult Update(StudentBE e)
        {

        try
        {
            var UStatus = Generic.UpdateStudent(e.student,"","");

            return Json(UStatus.ToString());
        }
        catch (Exception ex)
        {
            return Json(ex.ToString());
        }
        finally
        {
        }
    }

using this I can update only one user perfectly but I need to loo update all users based on generic Filedset values?

can anybody advice me about this? how to do this?

Thanks

  • 1 1 Answer
  • 4 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-05-14T23:24:47+00:00Added an answer on May 14, 2026 at 11:24 pm

    You need to create one model with all of the data you want to modify, then push all of the content back to the server, not just a single student. Rather than passing the student ID as a routing parameter, you need to store each student key in something else like a hidden field.

    And, when you return JSON, you need to return the entire model as JSON, not a single record. Alternatively, if you are using JQuery or MS AJAX to async communicate with the server, you can setup each student as a separate form, and send the data async.

    HTH.

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

Sidebar

Related Questions

I have a table users. I wish to update the column email based on
I have this code to update users data, but I can't write the for
I have a list of users in local store that I need to update
I have a 500,000 line SQL script: UPDATE users SET region_id = 9814746 WHERE
I have a bit of HTML code that I would like to change based
I have a text input where users submit CSV e.g. red, blue, red, yellow
I have two radio buttons <div align=center class=radio_group> <input type=radio id=gallerymenustyle1 class=element radio name=gallerymenustyle[]
So I have an input form that I want to use to update a
I have the following submit handler which should lookup for some value based on
I have an Excel-based application that gathers some user input, and makes some calculations

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.