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 3803668
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:23:56+00:00 2026-05-19T14:23:56+00:00

I have a view where a user can enter a bank transaction. So they

  • 0

I have a view where a user can enter a bank transaction. So they select an Account, a Payee, a Category (Based on allowable categories for the selected Payee) and a Sub Category (based on the Category selection) – and a value. This is done via JQuery, and is working.

However, there is a requirement to select more than one category/subcategory/amount per transaction (Split the transaction).

I’d like to maybe add a ‘grid’ (So, a table), and a button under the category/sub category/amount section, labelled ‘Add’, which then adds the selected Cat/SubCat/Amount to a grid, then blanks the existing selections, ready for more to be added – allowing the user to add as many ‘amounts’ as needed.

But – how?

On the Add button, I guess I would need to add the CategoryId, SubCategoryId and Amount to a List<>? Then based on that list, build the summary grid?

I’d like there to be no flashing of the screen. Would this have to be done via JQuery? Build the table with JQuery, and then have the list of cats/subcats/amounts sent back to the server on Form submittion?

  • 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-05-19T14:23:56+00:00Added an answer on May 19, 2026 at 2:23 pm

    You might want to look into the jQuery tmpl plugin. This plugins allows you to build client side templates. This is the kind of thing you might want to use on your site.

    You define one template of a table row, and each time just add a new row based on that template.
    I would give each form item in the table row an extra index variable (such as name=”CategoryID-1″ for the first row). While inserting a new row, you just send the current index to the template, and make sure the template adds the current index to the names of the form elements.

    Then on the server side, you can do a simple query to get all the indeces.

    ie

    int[] indices = Request.Form.AllKeys.Where(k => k.StartsWith("CategoryID-")).Select(k => Convert.ToInt32(k.Substring(11))).ToArray();
    
    foreach (int index in indices)
    {
        string cat = Request.Form["CategoryID-" + index.ToString()];
        string subcat = Request.Form["SubCategoryID-" + index.ToString()];
        //etc.
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a system whereby a user can view categories that they've subscribed to
I have a View where the user can select Basic Configuration and Advanced Configuration
I have an view-based application where the user can do a lot of customization
I have a setup view where the user can enter their name and email
I have a modal view that with a UITextView, and the user can enter
I have a view user control that can post form. This control can be
I have a view where the user can change some settings, its basically a
I have a tabled view in a while loop, where a user can view
i have view like 'home/details/5', it can be access by anonymous user. but there
How can I have a view render a partial (user control) from a different

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.