LinkButton in ListView in UpdatePanel causes full postback

前端 未结 5 990
自闭症患者
自闭症患者 2020-12-08 10:00

I have a LinkButton in a ListView in an UpdatePanel. I would like the button (well, any of them) to cause a partial postback, but they are causing a full page postback.

5条回答
  •  余生分开走
    2020-12-08 10:43

    I resolved this problem by setting: ClientIDMode="AutoID" on the page directive of the applicable page like so:<%@ Page Title="" ClientIDMode="AutoID" Language="C#"%>

提交回复
热议问题