Try this: 1. Default.aspx
<select id="sel1"><option>came here first!</option></select>
<select id="sel2"><option>came here second!</option></select>
//anywhere in your default.aspx insert this:
<asp:ScriptManager ID="test" runat="server">
<Services>
<asp:ServiceReference Path="test.asmx" />
</Services>
</asp:ScriptManager>
2. Your JS/SQuery
$(function(){
if (typeof (Sys) !== "undefined") Sys.Application.notifyScriptLoaded();
$('#send').click(function(){
$sel1\_value = $('#sel1').val();
$sel2\_value = $('#sel2').val();
test.SendData($sel1\_value, $sel2\_value, SendSuccess, SendFailed);
});
function SendSuccess(result, eventArgs)
{
alert(result);
}
function SendFailed(error)
{
alert(error);//server side exception
}
});
3. Webservice (test.asmx) - Create a new webservice called test.asmx - Create a new [WebMethod] called SendData in this class like so:
//uncomment whatever you are asked to uncomment in this class
\[WebMethod\]
public string SendDate(string sel1, string sel2)
{
//process your received data here using the passed parameters
//care to return response if need be!
return "...holla! i got here last!!!";
}
Oops!!! don't forget to download and reference the latest JQuery Library in your project! Goodluck