get submit button id

后端 未结 7 715
抹茶落季
抹茶落季 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:44

    Use CommandArgument property to determine which button submits the form.

    Edit : I just realized, you said you need this at PageLoad, this works only for Click server side event, not for PageLoad.

提交回复
热议问题