get submit button id

后端 未结 7 713
抹茶落季
抹茶落季 2021-01-21 02:57

Inside asp.net form I have few dynamically generated buttons, all of this buttons submit a form, is there a way to get which button was submit the form in page load event?

相关标签:
7条回答
  • 2021-01-21 03:54

    Request.Form["__EVENTTARGET"] will give you the button that fired the postback

    0 讨论(0)
提交回复
热议问题