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 9078475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:37:54+00:00 2026-06-16T19:37:54+00:00

I am working on a Single Page Application in MVC4. I have a dropdown

  • 0

I am working on a Single Page Application in MVC4. I have a dropdown box. When I select that drop down box, the onchange event will fire calling some JavaScript.

I need the JavaScript to call the controller and have the controller return a JSON result of some data (I know how to get the data). Could anyone help me get a basic framework laid out for this?

  • 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-06-16T19:37:56+00:00Added an answer on June 16, 2026 at 7:37 pm

    Wire up the onchange javascript event to your select element

    In the event function for the onchange, have ajax send the value from the select element to a controller.

    In the controller/action method do your work based on the value and then prepare json data (perhaps serialize?) and then return it.

    In the success part of the ajax call, parse or otherwise use the returned json data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a application that will have a desktop/laptop web page component and
I am working on single-page AngularJS application that doesn't have any backend but use
I'm working on a project that will have a single table holding lots and
Background I'm working on a an educational JavaScript application/site (SPA) that will eventually have
I am working on a web application that has a single master page and
I have a mobile single-page web application that is built using jquery-mobile (jqm) and
I have a struts2 application with a single page that may show one of
I am currently working on MVC4 SinglePage Application. I have a Web Api method
I'm working on my first very complex JQuery based application. A single web page
So I've set up an HTML5 single page application, and it's working well. The

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.