📄 default.aspx
字号:
<Script runat="server" >
Public Sub Page_Load(sender As Object, e As EventArgs)
' Calculate the discount rate
Dim discountRate As Single
Dim productCost As Single
' Determine productCost value
productCost = 19.99F
' Calculate discount rate and apply to product cost
discountRate = CommerceApplication.discountRate
productCost = productCost - (productCost * discountRate)
' Display calculation
lblCost.Text = productCost.ToString()
End Sub
</Script>
The cost of the product is: $<asp:label id="lblCost" runat="server" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -