如何从PostgreSQL表(Npgsql)填充下拉列表 [英] How to fill a dropdownlist from postgreSQL table (Npgsql)
本文介绍了如何从PostgreSQL表(Npgsql)填充下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我正在使用Npgsql,并且试图找到一种将下拉列表绑定到PostgreSQL中的表数据的方法.
在MSSQL中,我使用了类似的方法:
Hallo,
I am using Npgsql and I am trying to find a way to bind a dropdown list to the data of a table in postgreSQL.
With MSSQL I used something like:
list1.dataSource = new SQLDataSource(connString, command)
list1.dataBind()
Npgsql有什么类似的东西吗?或我该怎么做?
Is there anything similar for Npgsql? Or how can I do that?
推荐答案
检查 this [^ ]了解如何使用它.
Check this[^] to learn how to use it.
这篇关于如何从PostgreSQL表(Npgsql)填充下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文