How to prevent a dropdownlist from postback or updating inside an updatepanel when button is clicked

后端 未结 2 1430
慢半拍i
慢半拍i 2021-01-23 17:48

How to prevent a dropdownlist from postback or updating inside an updatepanel when button is clicked. I am doing this because i have java script to make ddl a searchable dropdow

2条回答
  •  孤城傲影
    2021-01-23 17:58

    Write your javascript function in pageLoad event of javascript.

    It will always be executed in postback as well as partial postbacks also.

    Find below code for your functions

     function pageLoad() {
                 //This will ensure your code will run all the time
                 CreateDropdown();
                 InitializeDatePickers();
                 AssignPlugins();
    
            }
    

提交回复
热议问题