如何在下拉列表中显示数据库值 [英] how to display database values in a dropdownlist

查看:219
本文介绍了如何在下拉列表中显示数据库值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在下拉列表中显示数据库值...但不使用智能标记,而是在使用数据集的后面的代码中编写代码.

i need to display database values in a drop down list...but not using the smart tag but to write code in the codebehind wit the use dataset

推荐答案

请参阅:

http://www.progtalk.com/viewarticle.aspx?articleid=194 [ ^ ]
Refer this:

http://www.progtalk.com/viewarticle.aspx?articleid=194[^]


检查此

http://bytes.com/topic/c-sharp/answers/250684-populate-dropdownlist [^ ]

http://www.velocityreviews.com/forums/t89095- how-to-populate-dropdown-list-from-database.html [ http://www.dotnetfunda.com/articles/article30.aspx [
Check this

http://bytes.com/topic/c-sharp/answers/250684-populate-dropdownlist[^]

http://www.velocityreviews.com/forums/t89095-how-to-populate-dropdown-list-from-database.html[^]

http://www.dotnetfunda.com/articles/article30.aspx[^]


DropdownList.DataSource=your data="" source="">;
Dropdownist.Databind();


这篇关于如何在下拉列表中显示数据库值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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