Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6822735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:41:57+00:00 2026-05-26T21:41:57+00:00

I am sure there will be articles around this but I really don’t know

  • 0

I am sure there will be articles around this but I really don’t know the correct name for it and having little success finding examples like mine.

I have a quote form where you have the ability to select a product and atributes of it. There are three dropdowns and based on the combination of the three, I have a table (with associated model/controller) that has a price. I want to display the price on the page but i must update as the selections are updated.

Setting the price from the get go seemed easy but then updating it based on dropdowns selected had me go in a tail spin of ‘”onSelectedIndexChanged()’, javascript, AJAX, partial views and I simply confused myself.

I need a simple way to display price information on a quote form as they fill out the details (three fields control price). I did look at the music store demo but its slightly different and the shopping cart element which looked handy was grabbing data in a table so again got stuck.

Help always appreciated as ever.

Thanks,
Steve.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:41:57+00:00Added an answer on May 26, 2026 at 9:41 pm

    When one of the three dropdowns changes, I’d make an AJAX call to the server to get the price as a JSON object and use it to update the price input.

    Example using jQuery to add the handlers and perform the AJAX operation.

    var $priceControls = $('#control1,#control2,#control2');
    $priceControls.change( function() {
         $.getJSON( '@Url.Action("price","product")',
                    $priceControls.serialize(),
                    function(price) {
                        $('#price').val(price);
         });
    });
    
    public class ProductController : Controller
    {
         public ActionResult Price( string control1, string control2, string control3 )
         {
             decimal price = ...lookup price based on control values...
             return Json( price, JsonRequestBehavior.AllowGet );
         }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I will be releasing my Air/Flex application soon, but I am pretty sure there
Pretty sure there is an easy answer to this, but just can't find the
I'm sure there are a million posts about this out there, but surprisingly I'm
Im sure there is a very simple solution for this. I have a bunch
I'm sure there is a good (or at least decent) reason for this. What
I am sure there is a simple answer to this one. I have a
I'm pretty sure there should be a more Pythonic way of doing this -
I'm sure there are different approaches to this problem, and I can think of
I'm not sure if there is can be done with CSS, but wanted to
I'm not sure if something odd is happening or if this is normal, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.