Hi,
i am developing a page in asp .net with javascript webmethod.
the webmethod is returing good data.
I have a functions.js file in that file i worte a function.
- function getQData(ostrAgency, oSurID, oHIEPriv, oIsChecked)
- {
-
- var strData;
- var params = "{'strAgency':'" + ostrAgency + "', 'strSurID':'" + oSurID + "', 'strHIEPriv':'" + oHIEPriv + "','IsChecked':'" + oIsChecked + "'}";
- $.ajax({
- type: "POST",
- url: "Rpt.aspx/getQuesData",
- contentType: "application/json; charset=utf-8",
- data: params,
- dataType: "json",
- success: function (responce) {
- if (responce.d != '') {
- strData = responce.d;
- return strData;
- }
- },
- failure: function (responce) {
- debugger;
- alert(responce.d);
- },
- error: function (response) {
- debugger;
- alert(responce.d);
- }
- });
- return strData;
- }
i am calling this getQData method in frontend as
in strData1 i am not getting the data. any help..???