如何从函数返回表 [英] how to return a table from a function

查看:94
本文介绍了如何从函数返回表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个webservice,它有一个计算select查询的函数。所以我希望所有这些条目作为该函数的返回值。因为我们可以正常返回一个字符串或数值,所以我们如何从该函数返回一个完整的表。

I am using a webservice which has a function which computes a select query. So i want all those entries as a return value from that function. As we can either return a string or numeric value normally so how can we return a whole table from that function.

推荐答案

这是一篇来自MSDN:从XML Web服务中使用DataSet [ ^ ]



因为,dataTables是XML可序列化的,因此您可以将它们用作XML Web Service的输入和输出。



您也可以使用使用网络服务的jQuery Datatable [ ^ ]





--Amit
Here is an article from MSDN : Consuming a DataSet from an XML Web Service[^]

Since, dataTables are XML serializable, and so you can use them as both input and output from an XML Web Service.

Also you can use jQuery Datatable using webservice[^]


--Amit


这篇关于如何从函数返回表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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