Implement ASP.Net form to input an itinerary

Posted on 2011-05-11
Last Modified: 2012-05-11
I have an form I'm working on and I am trying to find the best way to implement something like an itinerary. It's a trip form where the user will input some personal data (name, address, etc) then build their trip. We do not know when a person starts a form how many legs a trip may have. The database I'm building the form for implements this with 2 tables, a master trips table with a trip_itinerary table. The trip_itineray table holds the individual legs of a trip. This data will include dates from and to, country, city, travle mode, etc. So in the form I need to be able to add legs to the itinerary. I;m just looking for an example out there, and thus far my seaches have not turned anything up. Any guidance is appreciated.
Question by:dodgerfan
    1 Comment
    LVL 21

    Accepted Solution

    Create a page that shows the master trip information and a read-only table of the legs. Next to each leg you can have Delete and Edit links. Somewhere on the page create an Add button (or link). Edit and Add take the user to a different page that allows the editing of the individual fields of the leg. When the user saves (or cancels) from the Add/Edit form they're taken back to the main form.

    I don't know of any examples using WebForms, but you can see a tutorial using MVC at the following link. At least it would give you some idea of what I was trying to describe.

    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

    In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    729 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

    18 Experts available now in Live!

    Get 1:1 Help Now