Author: FattMatt | Posted on: 3/17/2010 2:11:40 AM | Views : 316

I am using JavaScript to call a web service. The JS is correctly receiving and passing the web service information.

At the moment, the web service returns a country name as a string to a JavaScript alert pop up box as follows:


ret = CountryRegionsWebService.GetTranslatedCountryShortName(ddl1_value, ddl2_value, OnComplete, OnTimeOut, OnError);


function OnComplete(args) { alert(args); }


I want to change this so that web service returns the country name to a label inside an insert item template of a form view.


Is there a way to pass in the label variable to the OnComplete function signature and still account for the variable args?, such as:


Server Side Declaration of JavaScript ddl2.Attributes.Add("onChange", "JavaS ...

Go to the complete details ...