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

后端 未结 7 1624
孤街浪徒
孤街浪徒 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:36

    CommandName is to identify which command you want to execute when a button is clicked, the event you need to handle is called Command (not Click), CommandArgument is the argument passed when you click that button, for example if you want to pass an ID.

提交回复
热议问题