如何在webservice中添加dropdownlist .. [英] how to add dropdownlist in webservice..

查看:70
本文介绍了如何在webservice中添加dropdownlist ..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个表Product Master,其中包含''Name''和''code''。

该表包含25个名称。我的问题是,如何创建webservice和webservice中的dropdownlist以及如何将所有这25个名字绑定到下拉列表?



请帮助我。



提前致谢。

Hi, I have created one table "Product Master" which contains ''Name'' and ''code''.
that table contains 25 name..My question is, how to create webservice and in that webservice take dropdownlist and how to bind all these 25 name to dropdownlist?

Please help me.

Thanks in advance.

推荐答案

1. Create a WebService
   a. Get the data from your database
   b. return the data as DataTable
2. Create a method in your code file
   a. Get the DataTable returned by your above WebService
   b. Bind DropDownList to the DataTable
You are done... Good Luck...


这篇关于如何在webservice中添加dropdownlist ..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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