使用选定的员工填充下拉列表中的数据以进行更新 [英] fill data in dropdownlist with selected employee for update
本文介绍了使用选定的员工填充下拉列表中的数据以进行更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在下拉列表中填写数据?
我有两张表:1。员工表。 2.国家/地区表(锁定表)
我需要在dropdwonlist中填写数据,并且该指标位于同一个选择员工To Update。
How i can fill data in dropdownlist ?
I have two tables: 1. table for employee. 2. table for country (lockup table)
I need fill data in dropdwonlist and that the indicator is on the same selection employee To Update.
DataTable _T2 = ins._Get_Country();
DL_Nationality.DataSource = _T2;
DL_Nationality.DataTextField = "CouDescription";
DL_Nationality.DataValueField = "CountryID";
DL_Nationality.DataBind();
推荐答案
阅读此DropDownList文章:
DropDownList [ ^ ]
阅读如何链接,选择重定向时的相关框架/版本。
这应该让你快速了解如何使用DropDownList。
Have a read of this DropDownList article:
DropDownList[^]
Read the "How to" links, select the relevant framework/version when redirected.
That should get you up to speed on how to use a DropDownList.
这篇关于使用选定的员工填充下拉列表中的数据以进行更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文