__EVENTTARGET is empty on postback of button click

前端 未结 5 1984
灰色年华
灰色年华 2020-12-09 17:35

I have a button on aspx page



        
5条回答
  •  温柔的废话
    2020-12-09 18:27

    My solution.I add OnClick event like this on my client side

    function btnClickSuper(s, e) { __doPostBack(s.name, ''); }

    here s is object presented my button in DevExpress, where property name contains, as part of, an Id of elment. so ,on server side, I can get Id of button sent postback. Price is server OnClick enevnt isn't fired.

提交回复
热议问题