How to prevent page being postbacked when i transfer item from one listbox to other

前端 未结 2 1425
臣服心动
臣服心动 2021-01-23 11:08

I have two listboxes in my application on button click i am pushing the item from one list box to other , the code works fine but it causes postback , while i move the item from

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-23 11:27

    Take the time to look into using jQuery along with Microsoft's Ajax with Update Panels or moving into jQuery exclusively where possible. Here are two links that are excellent reads regarding the subject:

    Microsoft Ajax? http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/

    jQuery Ajax: http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/

提交回复
热议问题