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