How do i prevent web form from refreshing after selecting value in combo box

Posted on 2009-02-10
Last Modified: 2013-11-19
I need some help. I not a prolific web developer, so any suggestions would be greatly appreciated. Basically I have a web form the is used to enter information into a works order management system. On the form itself I have a handful of textbox's and combo boxes of which I populate on page load. Two of the combo boxes are filtered upon selection of the previous combo box values. When I select a value form the first combo box it retrieves information from the database to load the second combo box, at the same time it refreshes the whole form. I don't want this to happen. I just need a quick simple bit of code to prevent the web page from refreshing upon the combo box value being selected. The only combo box event I am using is _SelectedIndexChanged, which passes the value to the method that connects to database and loads the next combo box in the sequence. I haven't attached any samle as i think it is a real easy thing to do for all the experts out there, but if required i can paste the relevants code snippits.

Question by:mitzdadon
    LVL 15

    Accepted Solution

    LVL 5

    Assisted Solution

    You can use AJAX for that.
    Down and install  Ajax 2.0 from the below site

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
    Read about why website design really matters in today's demanding market.
    This video teaches users how to migrate an existing Wordpress website to a new domain.
    The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now