Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hi i have the master page serach popup once they client give the search request it will retrive the some data from db using json and ajax but i need to pass this result values to another page and display this value in table of that page and try to do this in success function ajax and json bu this is not working and this is my code

XML
$.ajax({
              type: "POST",
              url: ServiceUrl,
              data: JSON.stringify(Searchcus),
              contentType: ContentType,
              dataType: DataType,
              processdata: ProcessData,
              success: function (result) {
                  // alert(JSON.stringify(result));
                  /*  if (result.SearchCustomerDetailsResult[0] !== null) {

                  $.each(result.SearchCustomerDetailsResult, function (index, value) {
                  CusSearchResult += value.CustomerName;

                  /* CusSearchResult += "<tr>";
                  CusSearchResult += "<td>" + value.CustomerName + "</td>";
                  CusSearchResult += "<td>" + value.EmailID + "</td>";
                  CusSearchResult += "<td>" + value.ePostID + "</td>";
                  CusSearchResult += "<td>" + value.IDNo + "</td>";
                  CusSearchResult += "<td>" + value.PhoneNo + "</td>";
                  CusSearchResult += "<td>" + value.IDType + "</td>";
                  CusSearchResult += "</tr>";
                  CusSearchResult += value.CustomerName;
                  CusSearchResult += value.EmailID;
                  alert(CusSearchResult);
                  });
                  // CusSearchResult += "<tr><td style='height:30px;' colspan='7' align='center'>No data found</td></tr>";
                  } else {
                  // CusSearchResult += "<tr><td style='height:30px;' colspan='7' align='center'>No data found</td></tr>";
                  }
                 

              },
Posted
Updated 14-May-14 23:30pm
v2
Comments
Sunasara Imdadhusen 15-May-14 2:15am    
So using this code where do you need to use data? can you please provide code snippet for Master Page and Child Page

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900