locked
Ajaxified ASP.NET GridView updates on Dodownbox change event RRS feed

  • Question

  • User1929044261 posted

    I have an ajaxified ASP.NET GridView which dynamically populates the data on the dropdown change event. We use JQUERY and JASON on the page. When ever the trigger the dropdown change event the data changes. I have few check box columns in the Grid view and based on the checkbox checks I need to make some changes in the database.

    But the value I get from the gridview  is always the value which is set during the default dropdown selection on the page load.

    How can I make sure I can retrieve the exact value I see in the page based on the dropdown selection?.

    FYI it's an ajax page and all the changes are designed in the client side. 

    Friday, December 12, 2014 11:42 AM

Answers

  • User831885415 posted

    if you are binding dropdown in page load. make sure it is not populating on every postback

    Use

    if(!Page.IsPostBack)

    {

    //bind dd here

    }

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, December 14, 2014 4:53 AM