In the sixth row, you can see the aspx code for the Calculate and Clear buttons. Here, each of the buttons has an OnClick property that points to the C# code in the code-behind file that will be run when the button is clicked. The Clear button also contains a Causes Validation property, which is set to False.This property tells the page not to do validation when the button is clicked. Because the default value of the Causes Validation property is True for buttons, this property doesn’t need to be set for the Calculate button
đang được dịch, vui lòng đợi..