Well there is no way I am going to write your entire solution for you, so
here is some code to make an async call using the XmlHttpRequest object so
that you can write all your own routines. The rest of the stuff like filling
in the list data, I am sure you will be able to work out.
function MakeXMLHTTPCall()
{
var xmlHttpObj = new ActiveXObject("Microsoft.XMLHTTP");
if (xmlHttpObj != null)
{
xmlHttpObj.Open("GET",
http://YourServer/YourServerPage.aspx, true);
// Assign a function to be used as the callback to be called when the
async call is complete.
xmlHttpObj.onreadystatechange = function()
{
if ( xmlHttpObj.readyState == 4 )
{
alert("Your request has completed its async operation. Your data
returned was " + xmlHttpObj.responseXML);
// Or you can use the responseText property
alert("Your request has completed its async operation. Your data
returned was " + xmlHttpObj.responseText);
}
}
xmlHttpObj.send(SomeArgument); // This can be null if no arguments are
required.
}
}
This will asynchronously request the output of the "YourServerPage.aspx"
page and return it to the function defined here for your manipulation. This
would be where you fill the listbox/dropdowns based on return data.
--
- Paul Glavich
MVP ASP.NET
http://weblogs.asp.net/pglavich
ASPInsiders member -
http://www.aspinsiders.com
"Trip" <se****@hotmail.com> wrote in message
news:2r****************************@40tude.net...
article is good, and i already almost solve my problem with AJAX.NET
wrapper when my boss says that I MUST manualy write javascript and server
code. he doesn't want wrapper. stupid, but.. he is boss.
On Sun, 2 Oct 2005 11:36:52 -0400, Juan T. Llibre wrote:
Read Karl Seguin's comprehensive article on Ajax.Net,
which was just published. There's sample code in it.
http://msdn.microsoft.com/library/de...SpicedAjax.asp
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Trip" <se****@hotmail.com> wrote in message
news:ou**************************@40tude.net...