How to pass int value to a ajax enabled wcf service method?
- by Pandiya Chendur
I am calling an ajax enabled wcf service method from my aspx page...
<script type="text/javascript">
function GetEmployee() {
Service.GetEmployeeData('1','5',onGetDataSuccess);
}
function onGetDataSuccess(result) {
Iteratejsondata(result)
}
</script>
and my method doesn't seem to get the value
[OperationContract]
public string GetEmployeeData(int currentPage,int pageSize)
{
DataSet dt = GetEmployeeViewData(currentPage,pageSize);
return GetJSONString(dt.Tables[0]);
}
when i used a break point to see what is happening in my method currentPage has a value0x00000001 and pageSize has 0x00000005
Any suggestion what am i doing wrong....