default.aspx

来自「Code for VB.NET教程源码 很好的源码」· ASPX 代码 · 共 21 行

ASPX
21
字号
<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 + =
减小字号Ctrl + -
显示快捷键?