Microsoft
98-363 · Question #187
A Web page has an <asp:Button> control and three <asp:TextBox> controls named num1, num2, and num3. When a user clicks the <asp:Button> control, the Web page calls a JavaScript function named…
The correct answer is D. OnClick="Product();". See the full explanation below for the reasoning.
Question
A Web page has an asp:Button control and three asp:TextBox controls named num1, num2, and num3. When a user clicks the asp:Button control, the Web page calls a JavaScript function named Product(). Product() multiplies the values of num1 and num2, and places the resulting value into num3. Which attribute should you set on the asp:Button control to call Product()?
Options
- AOnCommand="Product();"
- BCommandName="Product();"
- COnClientClick="Product();"
- DOnClick="Product();"
How the community answered
(22 responses)- A14% (3)
- B5% (1)
- C5% (1)
- D77% (17)
Community Discussion
No community discussion yet for this question.