开发者

Javascript updatepanel problem

I am having a problem with a javascript code. I want to update 2 update panels with javascript. here is the code. The updPnlLoadPm开发者_高级运维t has 3 triggers but the 2nd updatePanel does not have any triggers. Could that be a problem? Thank you!

    function pageLoadedHandler(sender, args) {
        var updatedPanels = args.get_panelsUpdated();
        var loadpmtPnlID = '<%=updPnlLoadPmt.ClientID %>';
        var AdvancepmtPnlID = '<%=UpdPnlAdvances.ClientID %>';
        if (updatedPanels.length > 0) {
            if (loadpmtPnlID == updatedPanels[0].id) {
                document.getElementById('<%=txtTotalDueAmount.ClientID %>').value = document.getElementById('<%=loadDueAmount.ClientID %>').value;
            } else if (AdvancepmtPnlID == updatedPanels[0].id) {
                document.getElementById('<%=txtTotalDueAmount.ClientID %>').value = document.getElementById('<%=hdnadvanceDue.ClientID %>').value;
            }
        }
    }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜