what is the purpose of command name and command argument for a control example button?

后端 未结 7 1482
孤街浪徒
孤街浪徒 2021-02-07 09:57

what is the purpose of command name and command argument for a control example button? when should we go for this?

7条回答
  •  我寻月下人不归
    2021-02-07 10:27

    You can place a button on asp:FormView and subscribe to its ItemCommand event.

    FormViewCommandEventArgs has properties CommandName and CommandArgument which will be equal to your Button's if it will be pressed.

提交回复
热议问题