0
Для этого следующего кода:Как обеспечить переменный яваскрипт в качестве параметра метода asp.net
var idArray = ["10","20","30"];
$.each(idArray, function(i, value){
if(<%= GeneralHelper.GetItemUrlByItemId(value)%>){ //I cannot use the variable value
alert('record found');
}
});
Код для моего класса:
public sealed class HelperClass{
public static bool HelperFunction(string Id){
// check some data in database against the id
// return true if record found
}
}