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

前端 未结 2 1344
臣服心动
臣服心动 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条回答
  •  清歌不尽
    2021-01-23 11:18

    If your version of Visual Studio is less than 2008, then first download the ajax from the following site and install it:

    http://ajaxcontroltoolkit.codeplex.com/

    Add a reference to the System.Web.Extensions dll and then add the following line right after your opening

    tag:

    
    

    Replace the Your Code in following piece of code with your entire code that you have written above:

    
    
    Your Code
    
    
    

    That's it, this will stop posting back your page.

提交回复
热议问题