使用存储过程在下拉列表中进行数据绑定 [英] data binding in dropdown list using stored procedure

查看:71
本文介绍了使用存储过程在下拉列表中进行数据绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我有一个下拉列表和表EMP,其中城市列与SPSP_city

我必须绑定我的城市DDL



你可以用上面的参数告诉我这个代码







请帮助我

Hi
I have One Dropdownlist and Table "EMP" having column "City" with SP "SP_city"
I have to bind City in my DDL

SO can u please tell me code for this using above parameters



PLEASE HELP ME

推荐答案

这里没有这样的工作。



以下是询问者的预期:

1. 先尝试你想做什么!你可能会发现它并不那么难。

2.制定你所做的事情看似问题/不工作。



尝试一下,告诉你是否面临问题。

各位会员非常乐意帮忙。






您需要获取城市数据,然后将其与下拉列表绑定。您应该阅读有关如何操作的ADO.NET:

MSDN:ADO.NET [ ^ ]

MSDN:使用ADO.NET访问数据 [ ^ ]

使用C#读取,插入,更新和删除简单的ADO.NET数据库。 [ ^ ]
It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it''s not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.



You need to fetch the data for city and then bind it with a dropdown. You should read on ADO.NET on how to do it:
MSDN: ADO.NET[^]
MSDN: Accessing Data with ADO.NET[^]
Simple ADO.NET Database Read, Insert, Update and Delete using C#.[^]


这篇关于使用存储过程在下拉列表中进行数据绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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