저는 둥근 모서리 (DIV)에 Jquery를 사용했으며 som 이미지와 삭제 링크가 포함 된 datalist를 포함하는 updatepanel을 가지고 있습니다. 삭제 링크를 클릭하면 삭제 명령이 실행되고 이미지를 삭제합니다. (asynchronouse postback). 문제는 내가 삭제 버튼을 클릭 할 때 div : s에 더 이상 둥근 모서리가 없다는 것입니다.Jquery and UpdatePanel
답변
Sys.WebForms를 사용하여 자바 스크립트를 등록해야합니다. 그러면 다시 게시 할 때마다 다시 실행됩니다.
예 :
$(document).ready(function() {
YourFunction();
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(YourFunction);
});
먼저 함수를 호출 할 필요가 없습니다. 저는 100 % 아니에요.
처음으로 페이지가 표시 될 때 둥근 모서리가 나타나게하려면 YourFunction()을 호출해야한다는 것을 확인했습니다. 페이지가로드 될 때 바로 호출 될 필요는 없습니다. –
나는 이것을 시도했지만 다른 문제가 발생했다. 업데이트 패널 외부의 항목은 updatepanel이 업데이트 될 때마다 한 번씩 함수를 호출하는 것처럼 보였습니다. 업데이트 패널에서 올바르게 작동합니다. 당신은 내 피들을 여기에서 볼 수 있습니다 ... [http://jsfiddle.net/QZ3DY/3/] (http://jsfiddle.net/QZ3DY/3/) –
대체 피들이있었습니다 ... [http : /jsfiddle.net/5HWRX/1/](http://jsfiddle.net/5HWRX/1/) –
- 1. jQuery AJAX vs. UpdatePanel
- 2. jquery with updatepanel
- 3. Jquery - Updatepanel conflict
- 4. UpdatePanel + AutoCompleteExtender + jQuery = 문제!
- 5. jquery and jScrollPane and ajax
- 6. UpdatePanel Viewstate가있는 JQuery BlockUI 문제
- 7. jQuery and Safari
- 8. Jquery and ShadowBox
- 9. Firefox .post and jquery
- 10. Jquery Galleria and Drupal
- 11. jQuery : hide and show
- 12. jQuery and Canvas.toDataURL
- 13. JQuery : delegate and datepicker
- 14. jQuery Ajax and XSL
- 15. jquery and observer pattern
- 16. PHP Foreach and jQuery
- 17. Telerik and jquery
- 18. jQuery : form and ajaxcall
- 19. jQuery AND selector
- 20. jquery offset() and position()
- 21. jQuery each and keyup
- 22. jQuery and .NET 2.0
- 23. jquery selector and ipad
- 24. jQuery and Rails
- 25. jquery uploadify and oncomplete
- 26. Jquery SlideToggle AND scroll
- 27. jQuery Sortable and Droppable
- 28. jQuery live() and change
- 29. jQuery and CSS : before
- 30. jquery and RegExp
: 그는 두 번 나열되었습니다. 다신론! blasphemy –