如何在WCF Web服务中使用下拉列表值 [英] how to use dropdown values in WCF web service

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

问题描述





我根据他们的选择在一个网页上有2个下拉菜单我想要返回结果。为此,我正在创建W CF Web服务,我在其中检查这两个下拉列表的选定值,并将结果返回到网页。

但我不知道如何使用在Web服务中选择这两个下拉列表的值。

请给我任何帮助。



谢谢,

Nilesh

Hi,

I have a 2 dropdowns on a single web page based upon their selection I want to return the result. For that I am creating W CF web service in which I am checking the selected values of those 2 dropdowns and will return the result back to the web page.
But I am not sure how I can use the selected values of those 2 dropdowns in web service.
Any help please.

Thanks,
Nilesh

推荐答案

嗯,您的服务无法直接访问您的网页。

因此,您在WCF服务中创建一个接受两个参数的方法然后基于此,编写你的逻辑以返回你的网页。



你可以将下拉选择的值作为参数传递给你的WCF方法。





-KR
Umm, your service can not directly access your webpage.
So, you create one method in WCF service that accepts two parameters & then based on that, write your logic to return something to your webpage.

You can pass the dropdown selected value as parameters to your WCF method.


-KR


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

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