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

  • Home
  • SEARCH
  • 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 6130793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:53:58+00:00 2026-05-23T16:53:58+00:00

I converted a 100% ASP.NET driven form to using nearly all AJAX based architecture

  • 0

I converted a 100% ASP.NET driven form to using nearly all AJAX based architecture except that it doesn’t submit the data using AJAX call, yet. It does a full page postback. And because the button submissions are still tied to so much functionality (it’s a global button custom control with multiple buttons), I chose not to convert them over to AJAX yet.

Every piece of data submits fine, except for one use-case. It’s a dropdown that is dependent from another dropdown. So now, when the value of dropdown 1 changes by the end user, dropdown 2 gets rebuilt from AJAX calls (JavaScript). Note, dropdown 1’s options NEVER change in the life of the application. When the form is submitted after that workflow, we lose the value of dropdown 2. Hopefully this is making sense. If dropdown 1 doesn’t change, dropdown 2 still has the same options from when the form was built in the code behind, so the value in the viewstate can be found when it’s posted.

Right now, I have a hidden field to keep track of that value that was selected and works fine for now, but is a bit clumsy. Before I did this development, both dropdowns had the AutoPostback attribute turned on. That caused the form to get resubmitted without submitting the form, just so the dropdowns could get rebuilt.

Is there a better approach to this problem without making the button perform an AJAX call to submit the data?

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

    Values manipulated in JavaScript can’t be maintained on postback, because it won’t be accessible on the server side. You can put the selected Value in the Hidden Field and then get it from the Hidden Field.

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

Sidebar

Related Questions

I have two textbox in a page each uses ASP.Net Ajax Autocompleteextender control. asp:TextBox
I am implementing a web based chat platform in ASP.NET Web Application, and I
I have an ASP.NET GridView that's bound to an ObjectDataSource (which is bound to
I am trying to set up a mono asp.net 4.0 test website that uses
I got all C# implementations on Google, so I converted it to VB.Net, but
I'm using the tableToGrid method of jqGrid to convert an ASP.Net GridView into a
I am using the Infragistics jQuery grid in my ASP .NET MVC application. My
I'm developing an Android App that should send an image to my ASP.NET Web
I initially receive an AJAX response of {B:{1:100,3:{AA:256}},A:100} and converted to a javascript object:
I converted my whole site to XML/XSL and I would like to know all

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.