How can I get an UpdatePanel to intercept a CompositeControl's DropDownList

后端 未结 3 1524
花落未央
花落未央 2021-02-11 10:05

I have a CompositeControl that contains a DropDownList.

I have set the AutoPostBack property of the DropDownList to true.

On the page, I have:

&l         


        
3条回答
  •  甜味超标
    2021-02-11 10:45

    I had repeating child controls (textbox and labels) in a ListView, inside an UpdatePanel.

    Changing the textbox would cause a full (synch) postback.

    I added the PAGE element (the first line in the .aspx page) : ClientIDMode="AutoID"

    This fixed the problem for me, and now only the UpdatePanel refreshes - as desired.

提交回复
热议问题