Multiple choice technology web technology

Consider two button server controls being specified with the same 'OnCommand' event. How does the event differentiate between the two buttons being clicked?

  1. Using runat property

  2. Using Text property

  3. Using CommandName property.

  4. Using ID property

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In ASP.NET, when multiple button controls share the same Command event (like OnCommand), the event handler can differentiate them using the CommandName and CommandArgument properties. The CommandEventArgs parameter in the event handler carries these values, allowing a single event handler to execute different logic based on which button was clicked. The ID property identifies the control but isn't the designed mechanism for command differentiation.