How to check whether ASP.NET button is clicked or not on page load

前端 未结 5 800
不思量自难忘°
不思量自难忘° 2020-12-29 00:12

How can I check whether a particular button was clicked or not in ASP.NET?

I think I need to perform some operation on Page_Load. This shouldn\'t be ent

5条回答
  •  隐瞒了意图╮
    2020-12-29 00:46

    The UniqueID of the button will be in Request.Form["__EVENTTARGET"]

    This question is already answered at: ASP.NET : Check for click event in page_load

提交回复
热议问题