- Kentico EMS & Xperience
I recommend using update panel mostly for UX reasons. When a visitor submits a form, just the form gets updated instead of the whole page. The visitor doesn't lose focus and receives an instant response. Update panel could be activated for a web part in its web part properties in the AJAX section.
Instead, you need to, let's say, re-register the script on postback. Below, see an example that demonstrates the usage.
- Create a function that does the desired functionality.
- Execute the function on page load.
- Re-run the function after postback.