Entering Unlimited Line Items in ASP.NET

Posted on 2012-08-16
Last Modified: 2012-09-01
I am taking some line item information from the user pertaining to driving violations.(Date of Conviction,Offense,Location, Type of Vehicle Operated) I have to make it so the user can enter pretty much an unlimited amount of line items. Does anybody have any suggestions or examples on the best way to accomplish this in C# and Any help or advice would be most appreciated.

Question by:jazzcatone
    LVL 35

    Expert Comment

    are you writing that to the file or entering into a data structure.

    If data struucture, try ArrayList

    Author Comment

    It will be written to data. Yes , I need to figure this out as well. However, I guess I was thinking more about the user interface first. To your point, whatever I choose I will most likely end up iterating through something. However, I'm not sure if I'm even that far just yet.

    LVL 20

    Expert Comment

    A multine textbox should be suffice for you.

    Accepted Solution

    I used an EssentialObjects data grid that lets me add as many items as possible. It also keeps a list of added, edited , deleted items on the client before commiting to the database with a postback

    Author Closing Comment

    Worked well

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now