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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:52:58+00:00 2026-06-10T16:52:58+00:00

I have a drop down list which is being populated with data from a

  • 0

I have a drop down list which is being populated with data from a database using a datasource in visual studio 2010. All the values are unique and I have set up an event to carry out an action when a new value is selected. When I select a new value in the drop down list the new value is selected but the event does not fire. I put a break point in the code to see if it was being executed which was not being hit.

I read about setting the drop down lists AutoPostBack to true but all this seems to do is refresh the page and set the list back to its original selected state (possible why the event is not firing?).

I also read something about enabling the ViewState as this could cause it to not fire, I tried putting EnableViewState = “true” at the top of the View to no avail. The EnableViewState property is also set to true on the drop down list.

I would be grateful if anyone has any insight into a solution?

Thanks

  • 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-10T16:53:00+00:00Added an answer on June 10, 2026 at 4:53 pm

    With Asp.Net MVC you do not have events and postback like Asp.Net.

    You should use a form tag to handle the values of your drop down, because it’s a classic HTML page. If you want to handle in a async way, use javascript connected to the onchange of your dropdown

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

Sidebar

Related Questions

I a have a dropdown list which is being populated from database. It is
I have a drop down list which is dynamically generated using ajax on page
I have a drop down list which is populated with a range of dates,
I have a parent page which has a drop down list in it. using
I have a drop-down list which is generated based on the following sql query:
I have one drop down list in my page, which contains two options. What
I have code which has a drop down list. And when a certain option
I have a User being reviewed drop down list, a SelectList of employees, and
I have a drop down list in asp.net using nested for loops in a
I have a database of Employees and a dropdown list which I generated with

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.