Question about Dynamically added custom controls

Source: Internet
Author: User

1. This is the first page, where "sales project and contact Customer 1" is added manually. If you click "add next sales project and customer", the second image will appear.

Add a user control 2 dynamically. If you add another control, click the button. When I add it to 4, I delete the 3rd control items and the following page appears.

I have done all these added things, but when I write a modification page, I encountered a problem. Please refer

The primary key in my database is date, name, sales item, contact Customer:

My problem is:

As an example, the user submitted three "sales items and contact customers". After the query, the user may perform the following operations: add several user controls; delete one of the three user controls, delete and add them, or modify them on the original three. When I operate the database, insert or update may be used. During update, the original primary key has been selectchanged. How can I update it? It seems troublesome to control the User Control ID. In short, you may feel confused.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.