Here's a simple example that uses client-side script (not the Atlas controls). In this case, the example uses two web services - one that implements a GetItems without parameters, and one that implements a GetItems with a single parameter.
<html>
<head>
<atlas:Script runat="server" Path="~/ScriptLibrary/AtlasRuntime.js" />
</head>
<body onLoad="OnLoad();" >
<select id="list1" onchange="OnSelect();"></select><br />
<select id="list2"></select>
</body>
<script src="Service1.asmx/js" type="text/javascript"></script>
<script src="Service2.asmx/js" type="text/javascript"></script>
<script type="text/javascript">
function OnLoad()
{
Service1.GetItems(OnGetMasterItems);
}
function OnGetMasterItems(results)
{
FillDropdown(document.getElementById('list1'), results);
}
function OnSelect()
{
Service2.GetItems(document.getElementById('list1').value, OnGetChildItems);
}
function OnGetChildItems(results)
{
FillDropdown(document.getElementById('list2'), results);
}
function FillDropdown(dropdown, items)
{
dropdown.innerHTML = '';
for (var i = 0; i < items.length; i++) {
var option = document.createElement("option");
option.innerText = items.i;
option.value = items.i;
dropdown.appendChild(option);
}
}
</script>
</html>
Later this week, I'll post a sample that shows how to do a master-details scenario with Atlas controls.
Thanks,