下拉列表包含不同的列
你好,我需要一些帮助,问题是我有数据库,有50个汽车记录和
i想要为每个人插入许可证(图像)(这不是我做的问题那就是它)我想使用下拉列表将不同年份的许可证图像插入到同一记录中(例如:当我使用下拉列表时,将出现年份,并且每个人都将获得许可我们已选择的所选内容中的图像
----注意:我不想给我满回答,如果你明白这个问题告诉我一些提示或我应该从哪里开始搜索。
谢谢你的帮助:)
我的尝试:
我使用sql数据源与数据绑定所以我不这样做,如果这将帮助我(我在asp.net尝试新的东西Iam)
Hello,i need some help the problem is i have data base that have 50 records for cars and
i want to insert license (image) for every one of them (that's not the problem i did that but here is it ) i want to insert a differnt years of license image into same record using dropdown list (ex: when i use drop down list years will appear and every one of them will be a licensed image inside them for the selected can that i already selected
----note: i don't want to give me full answer just if u understand the question tell me some tips or where should i start search.
Thank u for help :)
What I have tried:
Iam using sql datasource with databind so i don't if that will help me (Iam new in asp.net try to learn new things)
这是一个想法。
1.首先,你笑了uld有一个名为Licenses的表,其中包含列(CarId
,YearOfLicense
,Image
)。
2.选择年
时,取值,然后在此处运行插入查询使用图像
选择的CarId
表格。
Here is the idea.
1. First of all, you should have a table named something like "Licenses" with Columns (CarId
,YearOfLicense
,Image
).
2. When aYear
is selected, you take the value and then run a insert query in this table against theCarId
selected with theImage
.