Gaurav Raj

Gaurav Raj

  • NA
  • 475
  • 88.5k

how can i called webservice with jquery my code given below

Sep 15 2017 9:49 AM
this is my code but i dont know how can i call them with jquery ,web service run correctly so please help me guys i really need a help
public class RegClass
{
public int regID { get; set; }
public string Name { get; set; }
public string gender { get; set; }
public string country{ get; set; }
}
[WebMethod]
public List<RegClass> getRegister() {

Connection cs = new Connection();
var q = from a in cs.da.RegisterTables
select
new RegClass
{
regID=a.Id,
Name=a.F_Name+" "+a.L_Name,
gender=a.Gender,
country=a.Counttry,


};
return q.ToList();

Answers (3)