How to prevent full page postback on selectedindexchange for dropdownlist

后端 未结 3 828
甜味超标
甜味超标 2020-12-22 11:24

    
        

        
相关标签:
3条回答
  • 2020-12-22 11:29

    your code seems fine. did you try to comment out asp:Panel tab? if you unccoment triggers, you need to put asp:UpdatePanel around gridview

    0 讨论(0)
  • 2020-12-22 11:40

    As per this post it looks like your asp:Panel could be the culprit with the ClientIDMode="Static". Try changing this so it inherits.

    0 讨论(0)
  • 2020-12-22 11:43

    You'd need to specify ChildrenAsTriggers="true" in your UpdatePanel tag. The error you're getting is because your dropdown doesn't physically exist in the markup, which is what a Trigger line expects to find during compliation/runtime - instead, you are adding it dynamically as a control in your RowCreated function. It might be possible to, in that same function, add a trigger to the UpdatePanel dynamically, if you wanted to try that, instead.

    0 讨论(0)
提交回复
热议问题