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.


Bidyasagar MishraRank #766 · 3K reputationPosted Aug 15, 2019, 12:51 AM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Aug 15, 2019, 8:00 PM EDT
Bidyasagar MishraRank #766 · 3K reputationPosted Aug 15, 2019, 9:14 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 15, 2019, 9:30 PM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Aug 15, 2019, 10:13 PM EDT
Bidyasagar MishraRank #766 · 3K reputationPosted Aug 15, 2019, 10:27 PM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Aug 15, 2019, 11:05 PM EDT
Bidyasagar MishraRank #766 · 3K reputationPosted Aug 15, 2019, 11:10 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 15, 2019, 11:12 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 15, 2019, 11:18 PM EDT
Bidyasagar MishraRank #766 · 3K reputationPosted Aug 15, 2019, 11:20 PM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Aug 15, 2019, 11:30 PM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Aug 15, 2019, 11:37 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 15, 2019, 11:40 PM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Aug 15, 2019, 11:57 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 16, 2019, 12:06 AM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Aug 16, 2019, 12:12 AM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 16, 2019, 12:18 AM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Aug 15, 2019, 11:12 PM EDT