Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Service1 s = new Service1();
   //  getPlace g = new getPlace();
     List<model1> a;
     try
     {
         a = s.getinfo("Ambaji");	//destination place
         Response.Write(a);
     }
     catch
     {
         Response.Write("error");
     }
 }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Response.Write("null");
     Service1 sc = new Service1();
     Response.Write(sc.getbusdetail("Ahmedabad", "Ambaji"));		// bus between (source,destination)
     //GridView1.DataSource = adp;
     GridView1.DataBind();
     List<getBus> b;
     try
     {
         b = sc.getbusdetail("Ahmedabad","Ambaji");
         Response.Write(b);
     }
     catch
     {
         Response.Write("error");
     }
 }