我有以下代码,我需要将文本“检查可用性”更改为一个链接,该链接将打开一个 URL,如https://website.com
我怎样才能做到这一点?任何帮助将不胜感激。
if (ApplicationSetting.GetByNameBoolean("Web_AllowBackOrder", true, "") && orderLine.Product.TrackInventory)
{
var inv = (Int32)(orderLine.Product.QtyOnHand - totalOrdered);
if (inv < 0)
line.Availability = "Check Availability";
else if (inv <= model.InventoryLowStockQuantity)
line.Availability = "Low Stock";
else
line.Availability = "Available";
}