what is the purpose of command name and command ar

2020-06-03 01:18发布

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

标签: asp.net
7条回答
小情绪 Triste *
2楼-- · 2020-06-03 01:46

This allows you to pass additional parameters to a buttons Command event method identifying the button that called a method. This allows you to have multiple buttons that share similar functionality on your form using the same method when they are clicked rather than implementing a separate click event method for each button.

查看更多
登录 后发表回答