开发者

asp.net dynamic data websites insert of associated tables in the same form

Im trying asp.net dynamic data websites. I have a customers table and a customers-telephones table. The dynamic data website creates 2 separated forms for the insert in these tables, and I need my form to have the insert of the customer and the insert of the telephones to be in the same form for requirements of the buyer. is it possible to modify some开发者_如何学运维thing to have the insert of these 2 tables in the same form and with only one accept button?


You can either create a nested gridview, or you can de-normalize your data, giving a fixed maximum of phone numbers per customer. If you say your customers have maximum 3 different phone numbers (e.g. land, mobile and fax) you can just add these as three new columns on the customers table. In that case you will only need one insert (and one form) to add a customer and all his/her phone numbers.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜