How to prevent full page postback on selectedindexchange for dropdownlist

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

    
        

        
3条回答
  •  死守一世寂寞
    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.

提交回复
热议问题