1) Update Panel Should Have The Following Attributes:
ValidateRequestMode="Disabled" UpdateMode="Conditional"
2)Buttons Should have onClick Event
3)Register a PostBackTrigger in triggers tag for each button you want to post back.
4)the buttons should be outside formview, gridview, repeater, etc so that the triggers see it. (it access the button with its ID you cant find control inside it).
THE MOST IMPORTANT PART
if you have multiselect that binds (read the value from) another Multiselect
you must add the following code to your script in order to bind and read the new data:
$(function () {
pageLoad();
});
//On UpdatePanel Refresh
var prm = Sys.WebForms.PageRequestManager.getInstance();
if (prm != null) {
prm.add_endRequest(function (sender, e) {
if (sender._postBackSettings.panelsToUpdate != null) {
pageLoad();
}
});
};
function pageLoad(sender, args) {
//the IDs Of the multiselect controls you want to refresh
$("[id$=lbRoles]").selectpicker();
$("[id$=lbUsers]").selectpicker();
};
Control ==> In UI/CommonUc/Student/StudentUserComment
Search Knowledge Base Articles
Update Panel With Multi Select List Box
Did you find this article useful?
Related Articles
-
Update Panel Problems Fixed
to make update panel listen to your postback changes do as followin script:$(document).ready(IntializeStd);//On UpdatePanel Refreshvar prm = Sys.WebFo...