下拉列表包含不同的列 [英] Dropdown list with different columns

查看:79
本文介绍了下拉列表包含不同的列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我需要一些帮助,问题是我有数据库,有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 a Year is selected, you take the value and then run a insert query in this table against the CarId selected with the Image.


这篇关于下拉列表包含不同的列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆