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

后端 未结 2 1431
慢半拍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:56

    Even though there is no full PostBack, everything inside the UpdatePanel still gets refreshed and so the DOM loses the elements that were modified with jquery.

    You need to call the function that created the searchable dropdownlists after a async PostBack also.

    
    

提交回复
热议问题