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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:49:14+00:00 2026-05-13T19:49:14+00:00

My C# web app requires the user to enter automobile information. The user can

  • 0

My C# web app requires the user to enter automobile information. The user can add information for one auto, or more (max 20).

My page has these text fields: Car Number, Car Make, Car Year, Mileage, VIN
I have a button that allows the user to “Add More Cars”
The idea is to allow the user to add more than one car.

When the user clicks “Add More Cars”, how can I dynamically display the text boxes, and keep track of how many cars the user has added (in order to load them to an array and write to database)

Any other ideas that would make this objective easier? The control will only be used to enter data, not to view any records.

  • 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-13T19:49:14+00:00Added an answer on May 13, 2026 at 7:49 pm

    I like using a placeholder and adding user controls. It works quite nicely and is pretty modular. Here is a quick example where I add a few controls based on a list. You will notice I pass an object to my user control, allowing it to hide or show itself, display certain options etc based on permissions. You could easily modify this code to add upon an event:

    for (int i = 0; i < comments.Count; i++)
                {
                    controls.Comment commentCtrl = (controls.Comment)Page.LoadControl("~/userControls/Comment.ascx");
                    commentCtrl.ID = "commentUserCtrl" + i;
                    commentCtrl.setComment((myCommentObj)comments[i]);
    
                    placeHolderComments.Controls.Add(commentCtrl);
                }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say you have a web app related Android app that requires the user
Ok, so I'm developing a web app that has begun to be more ajaxified.
A web app I'm working on requires frequent parsing of diverse web resources (HTML,
Scenario: WCF client app, calling a web-service (JAVA) operation, wich requires a complex object
My web App prepares out of a db for one or two minutes a
My web app has been chugging along just great in Production for years with
This is question about MVC web-app architecture, and how it can be extended to
Can I use wget to populate some forms in a web app if the
I am creating a web app that requires the use of a Java Object
I have a mod_perl2 based web app that requires a connection to a mysql

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.