I want to call a function from my code behind (C#) using Jquery but no luck. Below is my code behind function and my jquery:
- [System.Web.Services.WebMethod]
- public static VmLowestLatestPrice LowestLatestPrice(string carMake, string carModel, string partsCode)
- {
- using (SqlConnection con = DBCS.DBCon())
- {
- SqlCommand cmd = new SqlCommand("spClaims_GetLowestLatestPrice", con);
- cmd.CommandType = CommandType.StoredProcedure;
- cmd.Parameters.AddWithValue("@carMake", carMake);
- cmd.Parameters.AddWithValue("@carModel", carModel);
- cmd.Parameters.AddWithValue("@partsCode", partsCode);
- con.Open();
- SqlDataReader rdr = cmd.ExecuteReader();
- while (rdr.Read())
- {
- VmLowestLatestPrice price = new VmLowestLatestPrice();
- price.LowestPrice = Convert.ToDouble(rdr["LowestPrice"]);
- price.LatestPricePurchase = Convert.ToDouble(rdr["LatestPricePurchase"]);
- return price;
- }
- rdr.Close();
- return null;
- }
- }
Thanks for any possible assistance.

Rajeesh MenothPosted Aug 16, 2019, 4:18 AM
Jes SiePosted Aug 16, 2019, 4:12 AM
Rajeesh MenothPosted Aug 16, 2019, 4:06 AM
Jes SiePosted Aug 16, 2019, 3:57 AM
Rajeesh MenothPosted Aug 16, 2019, 3:40 AM
Jes SiePosted Aug 16, 2019, 3:37 AM
Jes SiePosted Aug 16, 2019, 3:30 AM
Bidyasagar MishraPosted Aug 16, 2019, 3:20 AM
Rajeesh MenothPosted Aug 16, 2019, 3:18 AM
Rajeesh MenothPosted Aug 16, 2019, 3:12 AM
Jes SiePosted Aug 16, 2019, 3:12 AM
Bidyasagar MishraPosted Aug 16, 2019, 3:10 AM
Jes SiePosted Aug 16, 2019, 3:05 AM
Bidyasagar MishraPosted Aug 16, 2019, 2:27 AM
Jes SiePosted Aug 16, 2019, 2:13 AM
Rajeesh MenothPosted Aug 16, 2019, 1:30 AM
Bidyasagar MishraPosted Aug 16, 2019, 1:14 AM
Jes SiePosted Aug 16, 2019, 12:00 AM
Bidyasagar MishraPosted Aug 15, 2019, 4:51 AM