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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:29:15+00:00 2026-06-15T12:29:15+00:00

I have a single drop down in a jQuery Modal popup . When a

  • 0

I have a single drop down in a jQuery Modal popup . When a row in a repeater is selected I show the modal and use jQuery to set the appropriate item in the drop down. When the item in the dropDown changes I do a postback and save the new values.

My problem is that sometimes the SelectedIndexChanged event for the DropDown does not fire. This happens if my jQuery changes the value and the users changes it back to the default. The server does not know there was a change.

Suppose I have these color values in the drop down:
Text – Value

Unknown – 0
Red – 1
Blue – 2

The dropdown defaults to a value of 0 – an unknown color.
The users pick a repeater row that has a Red color and jQuery sets the dropDown to a value of 1 (for red).
The user changes the selection to Unknown – a value of zero.

The postback occurs, but the SelectedIndexChanged event does not fire. The reason is that the serverSide thinks the value did not change – the original value was 0 and the new value is 0. It does not know that jQuery changed it to 1.

Does anyone know a good workaround for this?
I hate to do a postback when the modal is shown just to sync the server side.

  • 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-15T12:29:16+00:00Added an answer on June 15, 2026 at 12:29 pm

    Have a hidden input in your form, set its value to something using javascript when appropriate and check it on the server side during postback.

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

Sidebar

Related Questions

I have a single drop down using the accordion jQuery plugin but I want
I have the following HTML containing a drop down list (single selection) <script type="text/javascript">
I have Html drop down. i want to mark 11:00 pm as selected using
I have three drop down list <h:selectOneMenu> , and a <p:dataTable> . I want
I have Drop Down List with check box in my asp.net page. in that
I have a gridview which has drop down boxes in each header for filtering.
I have a pure CSS navigation menu with a drop-down section based on some
I have the equivalent of 3 cascading data sources or drop down lists. Since
I have a situation where i have a drop down in php file 'A'.and
I have a page with the same drop down list in 3 or so

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.