# Web Services, .net returning multiple related data

**URL:** <https://forum.kirupa.com/t/web-services-net-returning-multiple-related-data/305763>\
**Category:** programming\
**Created:** [March 3, 2010, 8:31am UTC](https://forum.kirupa.com/t/web-services-net-returning-multiple-related-data/305763 "2010-03-03T08:31:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![parms](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@parms](https://forum.kirupa.com/u/parms)\
**Post date:** [March 3, 2010, 8:31am UTC](https://forum.kirupa.com/t/web-services-net-returning-multiple-related-data/305763/1 "2010-03-03T08:31:22Z")

</div>

Hi

I am trying to use web services for the first time.

I am using .net 2.0.

I am tring to get what is essentially an array of data. This approach would work.

```
    Dim test As New ArrayList
    test.Add("one")
    test.Add("two")
    test.Add("three")
    Return test

```

The only problem here is that I need pairs of related info to be returned. Like this

```
    Dim test As New Hashtable
    test.Add("first", "one")
    test.Add("second", "two")
    test.Add("third", "three")
    Return test

```

But it appears I cannot do this. Do you know of a way I could bring back the data in related pairs.

Essentially the first value is the folder name(first, second, third) and the second value(one, two, three) is the file name within that folder.
